feat: migrate producer to upstream create-snapshots + bootstrap #97
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: Build and deploy documentation | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: nixos | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/cachix-action@v15 | |
| with: | |
| name: paolino | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - name: Build docs (strict) | |
| run: nix develop github:paolino/dev-assets?dir=mkdocs --quiet -c mkdocs build --strict | |
| - name: Deploy docs | |
| if: github.ref == 'refs/heads/main' | |
| run: nix develop github:paolino/dev-assets?dir=mkdocs --quiet -c mkdocs gh-deploy --force |