Skip to content

Commit

Permalink
Combine both workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN committed Dec 5, 2024
1 parent 50f00f1 commit 4aa50d7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 43 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on: [push, pull_request]
name: Main
jobs:
test:
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test -v ./...
publish:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.23.x
- name: Checkout
uses: actions/[email protected]
#with:
#token: ${{ secrets.GH_PAT }}
- name: Build Release
run: make -j4 build_all
- name: Publish to Github
uses: softprops/action-gh-release@v2
with:
#token: ${{ secrets.GH_PAT }}
files: ./bin/*
28 changes: 0 additions & 28 deletions .github/workflows/release.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 4aa50d7

Please sign in to comment.