Skip to content

Commit e05167f

Browse files
committed
release
1 parent 91987d6 commit e05167f

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
push:
1515
tags:
1616
- 'v*'
17+
permissions:
18+
contents: write
1719
jobs:
1820
goreleaser:
1921
runs-on: ubuntu-latest
@@ -28,18 +30,18 @@ jobs:
2830
name: Set up Go
2931
uses: actions/setup-go@v3
3032
with:
31-
go-version: '1.18'
33+
go-version-file: 'go.mod'
34+
cache: true
3235
-
3336
name: Import GPG key
37+
uses: crazy-max/ghaction-import-gpg@v5
3438
id: import_gpg
35-
uses: hashicorp/[email protected]
36-
env:
37-
# These secrets will need to be configured for the repository:
38-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
39-
PASSPHRASE: ${{ secrets.PASSPHRASE }}
39+
with:
40+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
41+
passphrase: ${{ secrets.PASSPHRASE }}
4042
-
4143
name: Run GoReleaser
42-
uses: goreleaser/goreleaser-action@v3
44+
uses: goreleaser/goreleaser-action@v3.0.0
4345
with:
4446
version: latest
4547
args: release --rm-dist

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module github.com/terraform-providers/terraform-provider-bitbucket
22

3+
go 1.18
4+
35
require (
46
github.com/DrFaust92/bitbucket-go-client v0.1.0
57
github.com/antihax/optional v1.0.0

0 commit comments

Comments
 (0)