Skip to content

Commit

Permalink
ci: change documentation job with new custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-acampora authored Feb 16, 2023
1 parent e142265 commit d1bcbb9
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d1bcbb9

Please sign in to comment.