chore(deps): update actions/cache action to v5 #2681
This file contains hidden or 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: Deploy documentation | |
| # Check for reference: | |
| # https://github.com/s1rius/ezlog/blob/20dce11e6d324bb18f57dc7c7c6d4a8bf40064de/.github/workflows/publish_pages.yml | |
| on: | |
| schedule: | |
| - cron: "40 03 */2 * *" # Runs at 03:40, every 2 days | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| env: | |
| runner: ubuntu-latest | |
| cache-mkdocs-key: cache-mkdocs | |
| REPO_URL: https://github.com/KyleGospo/docs.bazzite.gg | |
| SITE_URL: https://docs.bazzite.gg | |
| jobs: | |
| deploy: | |
| permissions: | |
| contents: read # To push a branch | |
| pages: write # To push to a GitHub Pages site | |
| id-token: write # To update the deployment status | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| # Necessary in order to have fetch_discourse_md.py available for mdbook-cmd | |
| - name: Add docs/utils to PATH | |
| run: | | |
| echo $PWD/utils:$PATH >> $GITHUB_PATH | |
| - name: Build book | |
| uses: ./.github/workflows/build_mkdocs | |
| with: | |
| site_url: ${{ env.SITE_URL }} | |
| repo_url: ${{ env.REPO_URL }} | |
| working_dir: ${{ github.workspace }} | |
| output_dir: ${{ github.workspace }}/book | |
| upload_github_page: ${{ github.event_name == 'pull_request' && 'false' || 'true' }} | |
| github_token: ${{ github.token }} |