Skip to content

Commit

Permalink
fix: fixed release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
demeyerthom committed Sep 3, 2024
1 parent e1f12e0 commit 9abff7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ crash.log

// Go modules
vendor/

/terraform-provider-amplience
16 changes: 4 additions & 12 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
version: '3'

tasks:
build-local:
cmds:
- go build -o terraform-provider-{{ .NAME }}_{{ .VERSION }}
- mkdir -p ~/.terraform.d/plugins/registry.terraform.io/labd/{{ .NAME }}/{{ .VERSION }}/{{ .PLATFORM }}/
- mv terraform-provider-{{ .NAME }}_{{ .VERSION }} ~/.terraform.d/plugins/registry.terraform.io/labd/{{ .NAME }}/{{ .VERSION }}/{{ .PLATFORM }}/terraform-provider-{{ .NAME }}_v{{ .VERSION }}
- cmd: codesign --deep --force -s - ~/.terraform.d/plugins/registry.terraform.io/labd/{{ .NAME }}/{{ .VERSION }}/{{ .PLATFORM }}/terraform-provider-{{ .NAME }}_v{{ .VERSION }}
platforms: [darwin]
vars:
VERSION: 99.0.0
NAME: commercetools
PLATFORM:
sh: echo "$(go env GOOS)_$(go env GOARCH)"
build:
env:
GORELEASER_CURRENT_TAG: "v0.0.0"
cmd: goreleaser build --snapshot --clean --single-target --output terraform-provider-amplience

format:
cmds:
Expand Down

0 comments on commit 9abff7e

Please sign in to comment.