Skip to content

Commit

Permalink
Resolves #188 - Still can't release
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-r-west committed Aug 10, 2022
1 parent 9de6b9d commit dab9b71
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 25 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- 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.PASSPHRASE }}

- name: List keys
run: gpg -K

- name: Get dependencies
run: |
go mod download
Expand All @@ -56,20 +45,19 @@ jobs:
run: |
go build -o ./bin/epcc -v ./cmd/
# - name: Unit Tests
# timeout-minutes: 15
# run: |
# go test -v -cover ./cmd/ ./external/...
- name: Unit Tests
timeout-minutes: 15
run: |
go test -v -cover ./cmd/ ./external/...
- name: Run GoReleaser (for Linux build and Syntax check)
uses: goreleaser/goreleaser-action@v3
env:
GOOS: linux
GOARCH: amd64
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
with:
version: latest
args: release --skip-publish
args: build --single-target --snapshot

- 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 it's not interactive.
# need to pass the batch flag to indicate its 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 dab9b71

Please sign in to comment.