Update version of GitHub actions #75
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
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'docs/**' | |
- 'README.md' | |
- 'Trivy.md' | |
- '.github/workflows/gh-pages.yml' | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup mdBook | |
uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: '0.4.5' | |
- name: Build mdBook | |
working-directory: ./docs | |
run: mdbook build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.BOT_TOKEN }} | |
publish_dir: ./docs/book | |
publish_branch: gh-pages |