Compare commits
2 commits
eba0cf119f
...
a47d932d18
Author | SHA1 | Date | |
---|---|---|---|
a47d932d18 | |||
623677eeb8 |
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
||||||
name: "Build"
|
name: "Build"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
paths:
|
||||||
|
- .forgejo/workflows/build.yaml
|
||||||
jobs:
|
jobs:
|
||||||
nix-build:
|
nix-build:
|
||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
|
@ -50,4 +54,6 @@ jobs:
|
||||||
if: success()
|
if: success()
|
||||||
env:
|
env:
|
||||||
CACHIX_ACTIVATE_TOKEN: ${{ secrets.CACHIX_ACTIVATE_TOKEN }}
|
CACHIX_ACTIVATE_TOKEN: ${{ secrets.CACHIX_ACTIVATE_TOKEN }}
|
||||||
run: nix build ".#top.${{ matrix.system }}" --json | jq -r .[].drvPath | cachix deploy activate
|
run: |
|
||||||
|
spec=$(nix build --print-out-paths)
|
||||||
|
cachix deploy activate $spec
|
Loading…
Reference in a new issue