misc: update deps (#260) #65
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: "pages" | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| actions: read | |
| contents: read | |
| pages: write | |
| id-token: write | |
| deployments: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build search | |
| if: github.repository_owner == 'NuschtOS' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # NOTE: not using the nix-daemon causes different hashes in FOD | |
| # - name: Install Nix | |
| # uses: nixbuild/nix-quick-install-action@v30 | |
| # | |
| # - uses: nix-community/cache-nix-action@v6 | |
| # with: | |
| # primary-key: nix-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} | |
| # restore-prefixes-first-match: nix-${{ runner.os }}-${{ matrix.target }}- | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| - name: Build search | |
| run: nix build -L github:NuschtOS/search.nuschtos.de --override-input search . | |
| - uses: nicknovitski/nix-develop@v1 | |
| - name: Publish to Cloudflare Pages | |
| if: "github.repository_owner == 'NuschtOS'" | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: 2a09613716e511a8fe8ca74abc084762 | |
| command: pages deploy result --project-name=nuschtos-search | |
| gitHubToken: ${{ github.token }} | |
| packageManager: pnpm |