Skip to content

Commit 129ab91

Browse files
committed
fix go releaser
1 parent 0adae5a commit 129ab91

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,11 @@ jobs:
3636
with:
3737
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3838

39-
- name: Install GoReleaser
40-
run: |
41-
curl -sL https://github.com/goreleaser/goreleaser/releases/download/v2.5.1/goreleaser_Linux_x86_64.tar.gz | tar -xz -C /usr/local/bin
42-
43-
- name: goreleaser
44-
run: |
45-
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
46-
GITHUB_ACTOR=$(echo ${GITHUB_ACTOR} | tr '[:upper:]' '[:lower:]')
47-
GIT_OWNER=${GITHUB_ACTOR} make goreleaser-release
39+
- name: Run GoReleaser
40+
uses: goreleaser/goreleaser-action@v5
41+
with:
42+
version: '~> v2'
43+
args: release --clean
4844
env:
4945
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
46+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ signs:
4848
release:
4949
extra_files:
5050
- glob: 'terraform-registry-manifest.json'
51-
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
51+
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'

0 commit comments

Comments
 (0)