Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 33cfc3a

Browse files
committed
bring back and disguise goreleaser
1 parent f8f5433 commit 33cfc3a

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
builds:
2+
- binary: "terraform-provider-auth0_v{{ .Version }}"
3+
env:
4+
- CGO_ENABLED=0
5+
goos:
6+
- darwin
7+
- linux
8+
- windows
9+
goarch:
10+
- amd64
11+
archives:
12+
- name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
13+
format: tar.gz
14+
format_overrides:
15+
- goos: windows
16+
format: zip

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
go-version: 1.12
2020
id: go
2121

22-
- name: Set VERSION env var
22+
- name: Determine version
2323
run: echo ::set-env name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
2424

2525
- name: Create release notes
@@ -29,6 +29,9 @@ jobs:
2929
uses: goreleaser/goreleaser-action@v1
3030
with:
3131
version: latest
32-
args: --skip-validate --release-notes release-notes.md
32+
args: |
33+
--config=release.yml \
34+
--skip-validate \
35+
--release-notes release-notes.md
3336
env:
3437
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)