Skip to content

Commit

Permalink
fix: snapcraft login
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu committed Jul 1, 2022
1 parent 581cc0c commit fe98c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
tags:
- "*"
- '*'

jobs:
goreleaser:
Expand All @@ -31,10 +31,10 @@ jobs:
- if: startsWith(github.ref, 'refs/tags/')
name: release a new version
run: |
snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_LOGIN }}")
make release "tag=${GITHUB_REF#refs/tags/}"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_GORELEASER }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
- if: startsWith(github.ref, 'refs/tags/') == false
name: test releasing a snapshot version
run: make release SNAPSHOT=1 tag=Unreleased
Expand Down

0 comments on commit fe98c41

Please sign in to comment.