Skip to content

Commit c577837

Browse files
committed
Update release workflow
1 parent 14f81a1 commit c577837

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,24 @@ jobs:
1717
goreleaser:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
2121
with:
2222
# Allow goreleaser to access older tag information.
2323
fetch-depth: 0
24-
- uses: actions/setup-go@v5
24+
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2525
with:
2626
go-version-file: 'go.mod'
2727
cache: true
2828
- name: Import GPG key
29+
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
2930
id: import_gpg
30-
uses: crazy-max/[email protected]
3131
with:
32-
# These secrets will need to be configured for the repository:
3332
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3433
passphrase: ${{ secrets.PASSPHRASE }}
3534
- name: Run GoReleaser
36-
uses: goreleaser/[email protected]
35+
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
3736
with:
38-
args: release --rm-dist
37+
args: release --clean
3938
env:
4039
# GitHub sets the GITHUB_TOKEN secret automatically.
4140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
3+
version: 2
34
before:
45
hooks:
56
# this is just an example and not a requirement for provider building/publishing
67
- go mod tidy
78
builds:
89
- env:
910
# goreleaser does not work with CGO, it could also complicate
10-
# usage by users in CI/CD systems like Terraform Cloud where
11+
# usage by users in CI/CD systems like HCP Terraform where
1112
# they are unable to install libraries.
1213
- CGO_ENABLED=0
1314
mod_timestamp: '{{ .CommitTimestamp }}'
@@ -57,4 +58,4 @@ release:
5758
# If you want to manually examine the release before its live, uncomment this line:
5859
# draft: true
5960
changelog:
60-
skip: true
61+
disable: true

0 commit comments

Comments
 (0)