Skip to content

Commit

Permalink
Merge pull request #72 from epics-extensions/nix-bundle
Browse files Browse the repository at this point in the history
Generate Nix bundle on tagged releases
  • Loading branch information
minijackson authored Dec 13, 2023
2 parents 314f010 + ae24586 commit d93b2ea
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,24 @@ jobs:
with:
diagnostic-endpoint: ""
- name: Run `nix build`
run: nix build -L .
run: nix flake check -L
nix-bundle:
runs-on: ubuntu-latest
# Only run on "v*" tagged commits
if: startsWith(github.event.ref, 'refs/tags/v')
needs: [nix-build]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- uses: DeterminateSystems/magic-nix-cache-action@v2
with:
diagnostic-endpoint: ""
- name: Run `nix bundle`
run: |
nix bundle --out-link wetest-bundle-link
cp --dereference wetest-bundle-link wetest-bundle
- name: 'Upload bundle'
uses: actions/upload-artifact@v3
with:
name: wetest-bundle
path: wetest-bundle

0 comments on commit d93b2ea

Please sign in to comment.