add config for snap (#191)

* add config for snap

* place holder

* fix build

* fit 7.2

* fix lint

* no empty
This commit is contained in:
Boshi Lian 2023-08-13 07:07:28 -07:00 committed by GitHub
parent 19a6a0c9eb
commit 502249d275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 264 additions and 7 deletions

View file

@ -73,14 +73,9 @@ jobs:
cache: true
- name: Setup Snap
env:
SNAP_SECRET: ${{ secrets.snap }}
run: |
set -e
sudo snap install snapcraft --classic
echo $SNAP_SECRET | base64 -d > /tmp/secret
snap run snapcraft login --with /tmp/secret
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
@ -91,6 +86,7 @@ jobs:
env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_PUSH: ${{ github.event_name != 'release' }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
- name: Upload binaries to release
env: