Skip to content

Commit

Permalink
feat: regroup workflow to one with dependency
Browse files Browse the repository at this point in the history
Signed-off-by: disaster37 <[email protected]>
  • Loading branch information
disaster37 committed Jan 10, 2022
1 parent 56589ce commit cb98d5f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 48 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/release.yml

This file was deleted.

35 changes: 34 additions & 1 deletion .github/workflows/build.yml → .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,37 @@ jobs:
with:
files: coverage.out
flags: unittests
fail_ci_if_error: true
fail_ci_if_error: true

goreleaser:
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/')
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
-
name: Import GPG key
id: import_gpg
uses: paultyng/[email protected]
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cb98d5f

Please sign in to comment.