Skip to content

Commit f97c870

Browse files
authored
publishing kdocs automatically
1 parent b941c78 commit f97c870

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/dokka-publish.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v2
15-
with:
16-
fetch-depth: 0
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
1717

18-
- name: Set up JDK
19-
uses: actions/setup-java@v2
20-
with:
21-
distribution: 'temurin'
22-
java-version: '11'
18+
- name: Set up JDK
19+
uses: actions/setup-java@v2
20+
with:
21+
distribution: 'temurin'
22+
java-version: '11'
2323

24-
- name: Grant execute permission for gradlew
25-
run: chmod +x gradlew
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x gradlew
2626

27-
- name: Generate Dokka HTML documentation
28-
run: ./gradlew dokkaHtml
27+
- name: Generate Dokka HTML documentation
28+
run: ./gradlew dokkaHtml
2929

30-
- name: Deploy to GitHub Pages
31-
uses: peaceiris/actions-gh-pages@v3
32-
with:
33-
github_token: ${{ secrets.PAT }}
34-
publish_dir: ./build/dokka/html
35-
publish_branch: gh-pages
30+
- name: Deploy to GitHub Pages
31+
uses: JamesIves/github-pages-deploy-action@4.1.5
32+
with:
33+
token: ${{ secrets.PAT }}
34+
branch: gh-pages
35+
folder: build/dokka/html

0 commit comments

Comments
 (0)