aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/macos.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index cb5adb7..669b033 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -3,6 +3,7 @@ name: macOS
3on: 3on:
4 push: 4 push:
5 branches: [ main ] 5 branches: [ main ]
6 tags: 'v*.*.*'
6 pull_request: 7 pull_request:
7 branches: [ main ] 8 branches: [ main ]
8 workflow_dispatch: 9 workflow_dispatch:
@@ -15,3 +16,11 @@ jobs:
15 - uses: actions/checkout@v1 16 - uses: actions/checkout@v1
16 - name: build-test 17 - name: build-test
17 run: make test 18 run: make test
19 - name: release
20 uses: softprops/action-gh-release@v1
21 if: startsWith(github.ref, 'refs/tags/')
22 with:
23 files: |
24 ./bin/release/yue
25 env:
26 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}