Skip to content

Commit 9abff7e

Browse files
committed
fix: fixed release workflow
1 parent e1f12e0 commit 9abff7e

3 files changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: goreleaser/goreleaser-action@v6
2828
with:
2929
version: latest
30-
args: release --rm-dist
30+
args: release --clean
3131
env:
3232
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ crash.log
1818

1919
// Go modules
2020
vendor/
21+
22+
/terraform-provider-amplience

Taskfile.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
version: '3'
22

33
tasks:
4-
build-local:
5-
cmds:
6-
- go build -o terraform-provider-{{ .NAME }}_{{ .VERSION }}
7-
- mkdir -p ~/.terraform.d/plugins/registry.terraform.io/labd/{{ .NAME }}/{{ .VERSION }}/{{ .PLATFORM }}/
8-
- mv terraform-provider-{{ .NAME }}_{{ .VERSION }} ~/.terraform.d/plugins/registry.terraform.io/labd/{{ .NAME }}/{{ .VERSION }}/{{ .PLATFORM }}/terraform-provider-{{ .NAME }}_v{{ .VERSION }}
9-
- cmd: codesign --deep --force -s - ~/.terraform.d/plugins/registry.terraform.io/labd/{{ .NAME }}/{{ .VERSION }}/{{ .PLATFORM }}/terraform-provider-{{ .NAME }}_v{{ .VERSION }}
10-
platforms: [darwin]
11-
vars:
12-
VERSION: 99.0.0
13-
NAME: commercetools
14-
PLATFORM:
15-
sh: echo "$(go env GOOS)_$(go env GOARCH)"
4+
build:
5+
env:
6+
GORELEASER_CURRENT_TAG: "v0.0.0"
7+
cmd: goreleaser build --snapshot --clean --single-target --output terraform-provider-amplience
168

179
format:
1810
cmds:

0 commit comments

Comments
 (0)