This repository was archived by the owner on Sep 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # Terraform Provider release workflow.
2+ name : Release
3+
4+ # This GitHub action creates a release when a tag that matches the pattern
5+ # "v*" (e.g. v0.1.0) is created.
6+ on :
7+ push :
8+ tags :
9+ - ' v*'
10+ workflow_dispatch :
11+
12+ # Releases need permissions to read and write the repository contents.
13+ # GitHub considers creating releases and uploading assets as writing content.
14+ permissions :
15+ contents : write
16+
17+ jobs :
18+ goreleaser :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
22+ with :
23+ # Allow goreleaser to access older tag information.
24+ fetch-depth : 0
25+ - uses : actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
26+ with :
27+ go-version-file : ' go.mod'
28+ cache : true
29+ - name : Import GPG key
30+ uses : crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549 # v5.2.0
31+ id : import_gpg
32+ with :
33+ gpg_private_key : ${{ secrets.terraform_gpg_secret_key }}
34+ passphrase : ${{ secrets.terraform_gpg_passphrase }}
35+ - name : Run GoReleaser
36+ uses : goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
37+ with :
38+ args : release --clean
39+ env :
40+ # GitHub sets the GITHUB_TOKEN secret automatically.
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
You can’t perform that action at this time.
0 commit comments