Skip to content

Commit

Permalink
Update workflow release
Browse files Browse the repository at this point in the history
Signed-off-by: WindSpiritSR <[email protected]>
  • Loading branch information
WindSpiritSR committed Jun 15, 2024
1 parent 241841d commit 31e7872
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Release
on: [push]
on:
workflow_dispatch:
push:
tags: ['*']
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
check-latest: true
go-version: '1.21'
Expand All @@ -14,7 +19,7 @@ jobs:
uses: actions/checkout@v3

- name: Cache go module
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
Expand All @@ -31,7 +36,7 @@ jobs:
run: make -j $(go run ./test/main.go) releases

- name: Upload Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/*
Expand Down

0 comments on commit 31e7872

Please sign in to comment.