up test.yml

This commit is contained in:
ljw
2024-09-22 21:28:43 +08:00
parent d394931fce
commit 758f1fb1c9

View File

@@ -62,16 +62,12 @@ jobs:
path: |
${{ matrix.goos}}-${{ matrix.goarch }}.tar.gz
${{ matrix.goos}}-${{ matrix.goarch }}.zip
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Create GitHub Release
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ matrix.goos}}-${{ matrix.goarch }}.tar.gz
${{ matrix.goos}}-${{ matrix.goarch }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}