Skip to content

nixify

nixify #1079

Workflow file for this run

on:
push:
branches: [main]
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
check-and-build:
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check
- run: nix build
- uses: actions/upload-artifact@v3
with:
path: ./result
if-no-files-found: error
deploy-preview:
if: github.event_name == 'pull_request'
needs: build

Check failure on line 30 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 30, Col: 12): Job 'deploy-preview' depends on unknown job 'build'. .github/workflows/ci.yml (Line: 49, Col: 12): Job 'deploy-production' depends on unknown job 'build'.
environment: pull_request_deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
path: .vercel/output/static
- id: deploy
run: nix run .#deploy-preview
- uses: thollander/actions-comment-pull-request@v2
with:
message: |
Branch deployed for review at:
${{ steps.deploy.outputs.URL }}
deploy-production:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
path: deploy
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: deploy