Skip to content

Commit 8b3f7e0

Browse files
committed
feat(ci): build AppImage on CI for tagged releases
remove old "bundle" build
1 parent 08454c6 commit 8b3f7e0

File tree

2 files changed

+34
-20
lines changed

2 files changed

+34
-20
lines changed

.github/workflows/nix-build.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,3 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

0 commit comments

Comments
 (0)