-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: change documentation job with new custom action
- Loading branch information
1 parent
e142265
commit d1bcbb9
Showing
1 changed file
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,25 +110,21 @@ jobs: | |
needs: | ||
- release | ||
runs-on: ubuntu-latest | ||
# Update documentation only when there is a new release | ||
if: needs.release.outputs.release-status == 'released' | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Generate Documentation | ||
run: ./gradlew dokkaHtml | ||
- name: Deploy documentation on GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
- name: Generate and deploy documenation | ||
uses: SmartOperatingBlock/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
keep_files: true | ||
publish_dir: ./build/dokka/html | ||
user_name: 'github-actions[bot]' | ||
user_email: 'github-actions[bot]@users.noreply.github.com' | ||
commit_message: 'docs: update documentation' | ||
should-generate-code-documentation: true | ||
code-documentation-generation-command: ./gradlew dokkaHtml | ||
code-documentation-dst-folder: './build/dokka/html' | ||
code-documentation-site-folder: 'documentation/code-doc' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
success: | ||
runs-on: ubuntu-22.04 | ||
needs: | ||
|