chore(deps): update actions/cache action to v6.1.0 #323
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: Trigger PR Build | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: pr-${{ github.event.pull_request.number }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: github.event.repository.fork == false | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python 3 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.x' | |
| cache: 'pip' | |
| - name: Restore MkDocs build cache | |
| id: cache-docs-restore | |
| uses: actions/cache/restore@v6 | |
| with: | |
| key: docs-${{ github.event.pull_request.number }} | |
| path: .cache | |
| restore-keys: | | |
| docs-${{ github.event.pull_request.number }} | |
| - name: Install system dependencies | |
| run: sudo apt-get install pngquant | |
| - name: Install requirements.txt | |
| run: | | |
| pip install wheel | |
| pip install -r requirements.txt | |
| - name: Build mkdocs | |
| run: | | |
| mkdocs build --clean | |
| mkdocs --version | |
| env: | |
| CI: true | |
| - name: Save MkDocs build cache | |
| id: cache-docs-save | |
| uses: actions/cache/save@v6 | |
| with: | |
| path: .cache | |
| key: docs-${{ github.event.pull_request.number }}-${{ github.run_id }} | |
| - name: Prepare Artifact Bundle | |
| run: | | |
| mkdir -p ./pr_bundle | |
| echo ${{ github.event.pull_request.number }} > ./pr_bundle/PR_NUMBER | |
| echo ${{ github.event.pull_request.head.sha }} > ./pr_bundle/PR_SHA | |
| mv site ./pr_bundle/site | |
| - name: Upload Build Artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: pr_build_artifacts | |
| path: pr_bundle/ |