Rename specificity to priority #268
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: docs | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| env: | |
| ACTIONS_CACHE_SERVICE_V2: "on" | |
| SCCACHE_GHA_ENABLED: "true" | |
| SCCACHE_GHA_VERSION: "1" | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| actions: write | |
| defaults: | |
| run: | |
| shell: nix develop .#ci --command bash {0} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup environment | |
| uses: ./.github/actions/setup | |
| with: | |
| shell: ci | |
| - name: Build docs | |
| run: | | |
| set -eufo pipefail | |
| cargo doc --no-deps --document-private-items | |
| rm target/doc/.lock | |
| echo '<meta http-equiv="refresh" content="0; url=wayfind/index.html">' > target/doc/index.html | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: target/doc | |
| retention-days: 30 | |
| deploy: | |
| needs: docs | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: "${{ steps.deployment.outputs.page_url }}" | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |