Skip to content

Commit b730e58

Browse files
eyal-morEyal Mor
andauthored
Create release.yml (#7)
* Create release.yml * Make the actions work correctly. Co-authored-by: Eyal Mor <[email protected]>
1 parent bfbb932 commit b730e58

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Go
1+
name: Test
22

33
on:
44
push:

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types:
6+
- "published"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v3
16+
with:
17+
go-version: 1.18
18+
19+
- name: Build
20+
run: make setup
21+
22+
- name: Test
23+
run: go test -v ./...
24+
25+
- name: Run GoReleaser
26+
uses: goreleaser/goreleaser-action@v3
27+
with:
28+
distribution: goreleaser
29+
version: latest
30+
args: release --rm-dist
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,12 @@ builds:
1111
- CGO_ENABLED=0
1212
goos:
1313
- linux
14-
- windows
1514
- darwin
16-
ignore:
17-
- goos: windows
18-
goarch: arm64
1915

2016
archives:
2117
- replacements:
2218
darwin: Darwin
2319
linux: Linux
24-
windows: Windows
2520
386: i386
2621
amd64: x86_64
2722

0 commit comments

Comments
 (0)