Skip to content

Commit

Permalink
goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
gavincabbage committed Sep 25, 2019
1 parent 345ea19 commit 4c16e97
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v1
with:
Expand All @@ -29,6 +31,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v1
with:
Expand All @@ -47,6 +51,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v1
with:
Expand Down Expand Up @@ -86,6 +92,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v1
with:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@master
- name: Import private key
run: echo "${{ secrets.RELEASE_PRIVATE_KEY }}" | GPG_TTY=$(tty) gpg --import --batch
- name: Release
uses: docker://goreleaser/goreleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: gavincabbage/ghaction-goreleaser@gc/signing
with:
args: release
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SIGNING_KEY: ${{ secrets.RELEASE_PRIVATE_KEY }}
1 change: 0 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ checksum:
name_template: 'checksums.txt'
signs:
- artifacts: checksum
cmd: "GPG_TTY=$(tty) gpg"
args: ["--batch", "-u", "AE97EBEFD0224A77", "--output", "${signature}", "--detach-sign", "${artifact}"]

0 comments on commit 4c16e97

Please sign in to comment.