Skip to content

Commit

Permalink
Add Snaps to release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalano committed Dec 16, 2023
1 parent 1fa587d commit 26c9dc5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: Setup Snapcraft
uses: samuelmeuli/action-snapcraft@v1
- id: create-snapcraft-cache-dirs
run: |
mkdir -p $HOME/.cache/snapcraft/download
mkdir -p $HOME/.cache/snapcraft/stage-packages
- name: GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand All @@ -42,3 +48,8 @@ jobs:
uses: rajatjindal/krew-release-bot@v0.0.38
with:
krew_template_file: .krew/ns.yaml
- name: Publish Snaps to the Snap Store (stable channel)
run: for snap in $(ls dist/*.snap); do snapcraft upload --release=stable $snap; done
env:
SNAPCRAFT_STORE_AUTH: candid
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}

0 comments on commit 26c9dc5

Please sign in to comment.