forked from JetBrains/koog
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 1010 Bytes
/
Copy pathdeploy-docs.yml
File metadata and controls
39 lines (30 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy Dokka Docs
on:
workflow_dispatch: # Manual trigger
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v5
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
- name: Build Dokka docs
run: ./gradlew dokkaGenerate
- name: Debug listing build folder
run: ls -R build
- name: Push to docs repo
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
cd build/dokka/html
echo "api.koog.ai" > CNAME
git init
git remote add origin https://x-access-token:${{ secrets.DOCS_DEPLOY_TOKEN }}@github.com/JetBrains/koog-api-docs.git
git checkout -b main
git add .
git commit -m "Update docs"
git push --force origin main