chore(deps): lock file maintenance #231
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: Deploy to NuxtHub | |
| on: push | |
| jobs: | |
| deploy: | |
| name: "Deploy to NuxtHub" | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: ${{ github.ref == 'refs/heads/master' && 'production' || 'preview' }} | |
| url: ${{ steps.deploy.outputs.deployment-url }} | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - uses: cachix/install-nix-action@v31 | |
| - uses: nix-community/cache-nix-action@v6 | |
| with: | |
| primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} | |
| restore-prefixes-first-match: nix-${{ runner.os }}- | |
| gc-max-store-size-linux: 1G | |
| purge: true | |
| purge-prefixes: nix-${{ runner.os }}- | |
| purge-created: 0 | |
| purge-last-accessed: 0 | |
| purge-primary-key: never | |
| - uses: cachix/cachix-action@v16 | |
| with: | |
| name: devenv | |
| - run: nix profile install github:cachix/devenv/v1.10 --accept-flake-config | |
| - name: Cache Bun dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun- | |
| - name: Install dependencies | |
| shell: devenv shell bash -- -e {0} | |
| run: bun install | |
| - name: Ensure NuxtHub module is installed | |
| shell: devenv shell bash -- -e {0} | |
| run: bunx nuxthub@latest ensure | |
| - name: Build application | |
| shell: devenv shell bash -- -e {0} | |
| run: bun run build | |
| - name: Deploy to NuxtHub | |
| uses: nuxt-hub/action@v2 | |
| if: github.ref == 'refs/heads/master' | |
| id: deploy | |
| with: | |
| project-key: index-on-hub-bypx |