crash.software
Projects
Pull Requests
Issues
Builds
wb
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
wb
Commits
2676deb0
🤬
Sign In
chore(readme): add goreleaser workflow
Rıza Sabuncu
committed
2 years ago
2676deb0
1 parent
b70a94d4
Total 2 files
Show one by one
■ ■ ■ ■ ■ ■
.github/release-binary.yml
1
+
name: 🎉 Release Binary
2
+
on:
3
+
create:
4
+
tags:
5
+
- v*
6
+
workflow_dispatch:
7
+
8
+
permissions:
9
+
contents: write
10
+
11
+
jobs:
12
+
release:
13
+
runs-on: ubuntu-latest
14
+
steps:
15
+
- name: "Check out code"
16
+
uses: actions/checkout@v3
17
+
with:
18
+
fetch-depth: 0
19
+
20
+
- name: "Set up Go"
21
+
uses: actions/setup-go@v3
22
+
with:
23
+
go-version: 1.17
24
+
25
+
- name: "Create release on GitHub"
26
+
uses: goreleaser/goreleaser-action@v3
27
+
with:
28
+
args: "release --rm-dist"
29
+
version: latest
30
+
workdir: .
31
+
32
+
env:
33
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
All occurrences
■ ■ ■ ■ ■ ■
.goreleaser.yml
1
+
before:
2
+
hooks:
3
+
- go mod tidy
4
+
5
+
builds:
6
+
- env:
7
+
- CGO_ENABLED=0
8
+
goos:
9
+
- windows
10
+
- linux
11
+
- darwin
12
+
goarch:
13
+
- amd64
14
+
- 386
15
+
- arm
16
+
- arm64
17
+
18
+
ignore:
19
+
- goos: darwin
20
+
goarch: '386'
21
+
- goos: windows
22
+
goarch: 'arm'
23
+
- goos: windows
24
+
goarch: 'arm64'
25
+
26
+
binary: '{{ .ProjectName }}'
27
+
main: main.go
28
+
29
+
archives:
30
+
- format: zip
31
+
replacements:
32
+
darwin: macOS
33
+
34
+
checksum:
35
+
algorithm: sha256
All occurrences
Please wait...
Page is in error, reload to recover