File tree Expand file tree Collapse file tree 2 files changed +34
-20
lines changed
Expand file tree Collapse file tree 2 files changed +34
-20
lines changed Original file line number Diff line number Diff line change 2020 diagnostic-endpoint : " "
2121 - name : Run `nix build`
2222 run : nix flake check -L
23- nix-bundle :
24- runs-on : ubuntu-latest
25- # Only run on "v*" tagged commits
26- if : startsWith(github.event.ref, 'refs/tags/v')
27- needs : [nix-build]
28- steps :
29- - uses : actions/checkout@v4
30- - uses : cachix/install-nix-action@v24
31- - uses : DeterminateSystems/magic-nix-cache-action@v2
32- with :
33- diagnostic-endpoint : " "
34- - name : Run `nix bundle`
35- run : |
36- nix bundle --out-link wetest-bundle-link
37- cp --dereference wetest-bundle-link wetest-bundle
38- - name : ' Upload bundle'
39- uses : actions/upload-artifact@v3
40- with :
41- name : wetest-bundle
42- path : wetest-bundle
Original file line number Diff line number Diff line change 1+ name : " Release artifacts"
2+
3+ permissions : read-all
4+
5+ on :
6+ # Allows running this workflow manually
7+ workflow_dispatch :
8+ pull_request :
9+ push :
10+ tags :
11+ - " v*.*"
12+
13+ jobs :
14+ appimage :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+ - uses : cachix/install-nix-action@v24
20+ - uses : DeterminateSystems/magic-nix-cache-action@v2
21+ with :
22+ diagnostic-endpoint : " "
23+ - name : Build AppImage
24+ id : build-appimage
25+ run : |
26+ nix build -L '.#AppImage'
27+ result_path="$(realpath result)"
28+ cp --dereference result "${result_path#*-}"
29+ - name : Upload AppImage
30+ uses : actions/upload-artifact@v3
31+ with :
32+ name : AppImage
33+ path : |
34+ *.AppImage
You can’t perform that action at this time.
0 commit comments