Skip to content

Commit 4aa50d7

Browse files
committed
Combine both workflows
1 parent 50f00f1 commit 4aa50d7

File tree

3 files changed

+36
-43
lines changed

3 files changed

+36
-43
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on: [push, pull_request]
2+
name: Main
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: [1.23.x]
8+
os: [ubuntu-latest, macos-latest, windows-latest]
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- uses: actions/setup-go@v3
12+
with:
13+
go-version: ${{ matrix.go-version }}
14+
- uses: actions/checkout@v3
15+
- run: go test -v ./...
16+
publish:
17+
if: startsWith(github.ref, 'refs/tags/')
18+
runs-on: ubuntu-latest
19+
needs: test
20+
permissions:
21+
contents: write
22+
steps:
23+
- uses: actions/setup-go@v3
24+
with:
25+
go-version: 1.23.x
26+
- name: Checkout
27+
uses: actions/[email protected]
28+
#with:
29+
#token: ${{ secrets.GH_PAT }}
30+
- name: Build Release
31+
run: make -j4 build_all
32+
- name: Publish to Github
33+
uses: softprops/action-gh-release@v2
34+
with:
35+
#token: ${{ secrets.GH_PAT }}
36+
files: ./bin/*

.github/workflows/release.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)