Skip to content

Commit

Permalink
Update the GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iamralch committed Aug 28, 2020
1 parent 717d332 commit 1400de3
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,33 @@ name: release

on:
push:
branches:
- "!*"
tags:
- "v*.*.*"
env:
GITHUB_TOKEN: ${{ secrets.GORELEASE_GITHUB_TOKEN }}

- 'v*'
jobs:
pipeline:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v2

- name: Unshallow
run: git fetch --prune --unshallow

- name: Set up Go
uses: actions/setup-go@v2

- name: Set up Golang
uses: actions/setup-go@v1
- name: Import GPG key
uses: paultyng/ghaction-import-gpg@v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
id: gpg

- name: Release Application
uses: goreleaser/goreleaser-action@v1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GORELEASE_GITHUB_TOKEN }}

0 comments on commit 1400de3

Please sign in to comment.