Skip to content

Commit b2fe398

Browse files
committed
Add GitHub Actions workflow for release automation with GoReleaser
1 parent 631c8da commit b2fe398

2 files changed

Lines changed: 84 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: Release with GoReleaser
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: '1.25'
25+
26+
- name: Run GoReleaser
27+
uses: goreleaser/goreleaser-action@v5
28+
with:
29+
distribution: goreleaser
30+
version: latest
31+
args: release --clean
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
project_name: ssh-ify
2+
3+
version: 1
4+
5+
builds:
6+
- id: ssh-ify
7+
main: .
8+
binary: ssh-ify
9+
ldflags:
10+
- -s -w
11+
goos:
12+
- linux
13+
- darwin
14+
- windows
15+
- freebsd
16+
goarch:
17+
- amd64
18+
- arm64
19+
- "386"
20+
- arm
21+
goarm:
22+
- "6"
23+
- "7"
24+
ignore:
25+
- goos: windows
26+
goarch: arm
27+
- goos: windows
28+
goarch: arm64
29+
- goos: freebsd
30+
goarch: arm
31+
- goos: freebsd
32+
goarch: arm64
33+
34+
archives:
35+
- format_overrides:
36+
- goos: windows
37+
format: zip
38+
files:
39+
- LICENSE
40+
- README.md
41+
42+
checksum:
43+
name_template: 'checksums.txt'
44+
algorithm: sha256
45+
46+
release:
47+
github:
48+
owner: FreeNetLabs
49+
name: ssh-ify
50+
draft: false
51+
prerelease: auto

0 commit comments

Comments
 (0)