Bump julia-actions/cache from 2 to 3 (#91) #826
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: Documenter | |
| on: | |
| push: | |
| branches: [main] | |
| tags: [v*] | |
| pull_request: | |
| jobs: | |
| docs: | |
| name: Documentation | |
| runs-on: ubuntu-latest | |
| if: contains( github.event.pull_request.labels.*.name, 'preview docs') || github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/') | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: quarto-dev/quarto-actions/setup@v2 | |
| with: | |
| version: "1.7.29" | |
| - uses: julia-actions/setup-julia@latest | |
| with: | |
| version: "1.11" | |
| - name: Julia Cache | |
| uses: julia-actions/cache@v3 | |
| - name: Cache Quarto | |
| id: cache-quarto | |
| uses: actions/cache@v5 | |
| env: | |
| cache-name: cache-quarto | |
| with: | |
| path: tutorials/_freeze | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('tutorials/*.qmd') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ env.cache-name }}- | |
| - name: Cache Documenter | |
| id: cache-documenter | |
| uses: actions/cache@v5 | |
| env: | |
| cache-name: cache-documenter | |
| with: | |
| path: docs/src/tutorials | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('tutorials/*.qmd') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ env.cache-name }}- | |
| - name: "Documenter rendering (including Quarto)" | |
| run: "docs/make.jl --quarto" | |
| env: | |
| PYTHON: "" | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
| note: | |
| name: "Documentation deployment note." | |
| runs-on: ubuntu-latest | |
| if: "!contains( github.event.pull_request.labels.*.name, 'preview docs')" | |
| steps: | |
| - name: echo instructions | |
| run: echo 'The Documentation is only generated and pushed on a PR if the “preview docs” label is added.' |