diff options
| -rw-r--r-- | .github/workflows/ubuntu.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 81de782..8a94573 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml | |||
| @@ -15,3 +15,14 @@ jobs: | |||
| 15 | - uses: actions/checkout@v1 | 15 | - uses: actions/checkout@v1 |
| 16 | - name: build-test | 16 | - name: build-test |
| 17 | run: make test | 17 | run: make test |
| 18 | - name: pack | ||
| 19 | if: startsWith(github.ref, 'refs/tags/') | ||
| 20 | run: zip ./linux-yue.zip ./bin/release/yue | ||
| 21 | - name: release | ||
| 22 | uses: softprops/action-gh-release@v1 | ||
| 23 | if: startsWith(github.ref, 'refs/tags/') | ||
| 24 | with: | ||
| 25 | files: | | ||
| 26 | ./linux-yue.zip | ||
| 27 | env: | ||
| 28 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
