Skip to content

Commit

Permalink
Resolves #188 - Fixes signing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-r-west committed Aug 10, 2022
1 parent f4b9ff4 commit 5887858
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,23 @@ jobs:
run: |
go test -v -cover ./cmd/ ./external/...
-
name: Import GPG key
id: import_gpg
uses: crazy-max/[email protected]
with:
# These secrets will need to be configured for the repository:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Run GoReleaser (for Linux build and Syntax check)
uses: goreleaser/goreleaser-action@v3
env:
GOOS: linux
GOARCH: amd64
with:
version: latest
args: build --single-target --snapshot
args: release --single-target --snapshot --skip-publish

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
Expand Down
16 changes: 8 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ builds:
ldflags:
- '-s -w -X github.com/elasticpath/epcc-cli/external/version.Version={{.Version}} -X github.com/elasticpath/epcc-cli/external/version.Commit={{.Commit}}'
goos:
- freebsd
- windows
# - freebsd
# - windows
- linux
- darwin
# - darwin
goarch:
- amd64
- '386'
- arm
- arm64
# - '386'
# - arm
# - arm64
ignore:
- goos: darwin
goarch: '386'
Expand Down Expand Up @@ -56,7 +56,7 @@ signs:
- artifacts: checksum
args:
# if you are using this in a GitHub action or some other automated pipeline, you
# need to pass the batch flag to indicate its not interactive.
# need to pass the batch flag to indicate it's not interactive.
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
Expand Down Expand Up @@ -109,4 +109,4 @@ announce:
#
# Attention: goreleaser doesn't check the full structure of the Slack API: please make sure that
# your configuration for advanced message formatting abides by this API.
#attachments: []
#attachments: []

0 comments on commit 5887858

Please sign in to comment.