Skip to content

Commit

Permalink
Merge pull request #93 from bgpat/fix-release-workflow
Browse files Browse the repository at this point in the history
Fix release workflow
  • Loading branch information
bgpat authored Feb 16, 2023
2 parents 9de0e12 + ee89f37 commit a3a108e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
#
# This uses an action (paultyng/ghaction-import-gpg) that assumes you set your
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
# This uses an action (crazy-max/ghaction-import-gpg) that assumes you set your
# private key in the `gpg_private_key` secret and passphrase in the `passphrase`
# secret. If you would rather own your own GPG handling, please fork this action
# or use an alternative one for key handling.
#
Expand All @@ -16,6 +16,8 @@ on:
- 'v*'
release:
types: [released]
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -26,22 +28,19 @@ jobs:
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Go Version
id: go-version
run: echo "::set-output name=version=$(cat .go-version)"
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache: true
-
name: Import GPG key
id: import_gpg
uses: paultyng/ghaction-import-gpg@v2.1.0
uses: crazy-max/ghaction-import-gpg@v5
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Go Version
id: go-version
run: echo "::set-output name=version::$(cat .go-version)"
- uses: actions/setup-go@v3
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache: true
- run: go test ./...
env:
TF_ACC: "true"
Expand Down
1 change: 0 additions & 1 deletion .go-version

This file was deleted.

0 comments on commit a3a108e

Please sign in to comment.