Skip to content

Commit 6739059

Browse files
committed
feat(*): add github workflows
1 parent 5e911ed commit 6739059

2 files changed

Lines changed: 38 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
name: Build binary and publish release
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout source
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version-file: go.mod
21+
22+
- name: Build binary via Makefile
23+
run: |
24+
make release
25+
mv iptables-server iptables-server-${{ github.ref_name }}-linux-amd64
26+
27+
- name: Upload artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: iptables-server-${{ github.ref_name }}
31+
path: iptables-server-${{ github.ref_name }}-linux-amd64
32+
33+
- name: Publish GitHub Release
34+
uses: softprops/action-gh-release@v2
35+
with:
36+
files: iptables-server-${{ github.ref_name }}-linux-amd64
37+
generate_release_notes: true

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module github.com/pretty66/iptables-web
22

3-
go 1.16
4-
3+
go 1.24

0 commit comments

Comments
 (0)