Skip to content

Commit ccc89e4

Browse files
committed
added github release workflow
1 parent 57f30a6 commit ccc89e4

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616

1717
- name: Set up Go
1818
uses: actions/setup-go@v5

.github/workflows/release.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v5
14+
15+
- name: Build
16+
run: go build -o observer .
17+
18+
- name: Release
19+
uses: softprops/action-gh-release@v2
20+
if: github.ref_type == 'tag'
21+
with:
22+
files: observer

0 commit comments

Comments
 (0)