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 Jun 21, 2022
1 parent c15569f commit c55a2bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,4 @@ jobs:
run: COMMAND=./dist/kubectx_linux_amd64/kubectx bats test/kubectx.bats
- name: kubens (Go) integration tests
run: COMMAND=./dist/kubens_linux_amd64/kubens bats test/kubens.bats
- name: Publish Snaps to the Snap Store (edge channel)
run: for snap in $(ls dist/*.snap); do snapcraft upload --release=edge $snap; done
env:
SNAPCRAFT_STORE_AUTH: candid
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}

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.17
- 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/[email protected]
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 c55a2bf

Please sign in to comment.