Skip to content

Commit 6c7e649

Browse files
committed
fix: install snapcraft
1 parent 77a52e5 commit 6c7e649

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,40 @@ jobs:
1212
steps:
1313
- name: checkout
1414
uses: actions/checkout@v6
15+
16+
- name: install snapcraft
17+
run: |
18+
sudo apt-get update -q
19+
sudo apt-get install -qy snapd
20+
sudo snap install --classic snapcraft
21+
1522
- name: go-setup
1623
uses: actions/setup-go@v6
1724
with:
1825
go-version: 1.24
19-
- name: install snapcraft
20-
uses: lucassabreu/action-snapcraft@main
26+
2127
- name: install nix
2228
uses: cachix/install-nix-action@v31
29+
2330
- name: goreleaser-setup
2431
uses: goreleaser/goreleaser-action@v6
2532
with:
2633
distribution: goreleaser
2734
version: latest
2835
install-only: true
36+
2937
- if: startsWith(github.ref, 'refs/tags/')
3038
name: release a new version
3139
run: |
3240
make release "tag=${GITHUB_REF#refs/tags/}"
3341
env:
3442
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_GORELEASER }}
3543
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
44+
3645
- if: startsWith(github.ref, 'refs/tags/') == false
3746
name: test releasing a snapshot version
3847
run: make release SNAPSHOT=1 tag=Unreleased
48+
3949
- if: startsWith(github.ref, 'refs/tags/')
4050
name: trigger Netlify deploy with new release
4151
run: |

0 commit comments

Comments
 (0)