Skip to content

Commit 01dac8c

Browse files
committed
feat: update github action
1 parent 13363b2 commit 01dac8c

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,15 @@
1-
name: Go Module Release
1+
name: Main
22

33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*.*.*"
77

88
jobs:
9-
release:
9+
build:
1010
runs-on: ubuntu-latest
11-
1211
steps:
13-
- name: Checkout code
12+
- name: Checkout
1413
uses: actions/checkout@v4
15-
16-
- name: Setup Go
17-
uses: actions/setup-go@v4
18-
with:
19-
go-version: '1.23'
20-
21-
- name: Build and Test
22-
run: |
23-
go mod tidy
24-
go test ./...
25-
26-
- name: Publish Go Module
27-
run: |
28-
git tag $(git describe --tags --abbrev=0)
29-
git push origin --tags
14+
- name: Release
15+
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)