Skip to content

Commit

Permalink
Check GPG release action
Browse files Browse the repository at this point in the history
  • Loading branch information
hhamon29 committed Oct 12, 2023
1 parent ce7fcd4 commit 38f757a
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- stage
- master
jobs:
goreleaser:
build:
runs-on: ubuntu-latest
steps:
-
Expand All @@ -31,21 +31,38 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
# -
# name: Import GPG key
# id: import_gpg
# uses: hashicorp/[email protected]
# env:
# # These secrets will need to be configured for the repository:
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
# PASSPHRASE: ${{ secrets.PASSPHRASE }}
-
name: Import GPG key
id: import_gpg
uses: hashicorp/ghaction-import-gpg@v2.1.0
uses: crazy-max/ghaction-import-gpg@v6
env:
# These secrets will need to be configured for the repository:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
# GitHub sets this automatically
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# -
# name: Run GoReleaser
# uses: goreleaser/[email protected]
# with:
# version: latest
# args: release --rm-dist
# env:
# GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
# # GitHub sets this automatically
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# -
# name: Builder
# uses: wangyoucao577/[email protected]
# with:
# github_token: ${{ secrets.GH_ASSET_TOKEN }}
# goos: linux
# goarch: amd64
# project_path: "cmd"
# asset_name: renymize-linux-amd64
# goversion: 1.19

0 comments on commit 38f757a

Please sign in to comment.