Skip to content

Commit d1bcbb9

Browse files
ci: change documentation job with new custom action
1 parent e142265 commit d1bcbb9

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,25 +110,21 @@ jobs:
110110
needs:
111111
- release
112112
runs-on: ubuntu-latest
113-
# Update documentation only when there is a new release
114113
if: needs.release.outputs.release-status == 'released'
115114
steps:
116115
- name: Checkout the repository
117116
uses: actions/checkout@v3
118117
with:
119118
submodules: recursive
120119
fetch-depth: 0
121-
- name: Generate Documentation
122-
run: ./gradlew dokkaHtml
123-
- name: Deploy documentation on GitHub Pages
124-
uses: peaceiris/actions-gh-pages@v3
120+
- name: Generate and deploy documenation
121+
uses: SmartOperatingBlock/documentation-ghp-action@1.0.0
125122
with:
126-
github_token: ${{ secrets.GITHUB_TOKEN }}
127-
keep_files: true
128-
publish_dir: ./build/dokka/html
129-
user_name: 'github-actions[bot]'
130-
user_email: 'github-actions[bot]@users.noreply.github.com'
131-
commit_message: 'docs: update documentation'
123+
should-generate-code-documentation: true
124+
code-documentation-generation-command: ./gradlew dokkaHtml
125+
code-documentation-dst-folder: './build/dokka/html'
126+
code-documentation-site-folder: 'documentation/code-doc'
127+
github-token: ${{ secrets.GITHUB_TOKEN }}
132128
success:
133129
runs-on: ubuntu-22.04
134130
needs:

0 commit comments

Comments
 (0)