Skip to content

Commit

Permalink
feat: use actions
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Dec 7, 2021
1 parent 621f9dc commit d23465d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: install ./cosign /usr/local/bin/cosign
- run: install ./goreleaser /usr/local/bin/goreleaser
- uses: sigstore/cosign-installer@v1.3.1
- name: dockerhub-login
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v1
with:
username: caarlos0
password: ${{ secrets.DOCKER_PWD }}
- if: success() && startsWith(github.ref, 'refs/tags/')
run: goreleaser release --rm-dist
- uses: goreleaser/goreleaser-action@v2
if: success() && startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

0 comments on commit d23465d

Please sign in to comment.