ci: upgrade install-nix-action to v31 for Nix 2.18+ compatibility #12
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: Push Main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build_sites: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| with: | |
| extra_nix_config: | | |
| access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
| - uses: workflow/nix-shell-action@v3.3.0 | |
| with: | |
| flakes-from-devshell: true | |
| script: | | |
| cargo install --git https://github.com/chevdor/tera-cli --tag v0.3.0 --root . | |
| bash build.sh | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: output | |
| path: output/ |