diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-27 22:07:46 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-27 22:07:46 +0300 |
| commit | 5ee6235bced76a961e9013bd56161525b4032c6b (patch) | |
| tree | 34a9bb130745b77e237bd1e657da8b5ac66cd13c /.github/workflows/release.yml | |
| parent | 1e7095b4a9b143a84b40902b294545d727683699 (diff) | |
fix: gate releases on nix flake checks
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 34bf957a..830d9b72 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,28 @@ env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true jobs: + flake-check: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v6 + with: + persist-credentials: false + + - name: Install Nix + uses: cachix/install-nix-action@8aa03977d8d733052d78f4e008a241fd1dbf36b3 # v31.10.6 + with: + extra_nix_config: | + experimental-features = nix-command flakes + always-allow-substitutes = true + + - name: Run Nix flake check + run: | + nix flake check --print-build-logs + nix flake check --all-systems --no-build --print-build-logs + build: permissions: contents: read @@ -123,7 +145,7 @@ jobs: run: python3 scripts/changelog.py validate-product-announcement release: - needs: [build, validate-release-inputs] + needs: [build, flake-check, validate-release-inputs] runs-on: ubuntu-latest permissions: contents: write |
