Skip to content

Commit

Permalink
Migrate to cli release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samcoe committed Nov 18, 2021
1 parent 5dca70a commit b8a5971
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 52 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
name: goreleaser
name: release

on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
goreleaser:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Import GPG key
id: import_gpg
Expand All @@ -27,12 +25,7 @@ jobs:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
name: Create release
uses: cli/gh-extension-precompile@v1
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
gpg_fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}
36 changes: 0 additions & 36 deletions .goreleaser.yml

This file was deleted.

0 comments on commit b8a5971

Please sign in to comment.