diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 1882f1e..c579758 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -1,9 +1,6 @@ name: release -on: - push: - tags: - - '*' +on: [push] jobs: release-plugins: @@ -17,10 +14,13 @@ jobs: uses: actions/setup-go@v4 with: go-version: '>=1.20.1' - - run: cd YouTubeMusic && zip -r YouTubeMusic.zip . + - run: cd YouTubeMusic && zip -r YouTubeMusic.zip . && mv YouTubeMusic.zip ../ + - run: sha1sum YouTubeMusic.zip > YouTubeMusic.sha - name: Release uses: https://gitea.com/actions/release-action@main with: + tag_name: 0.0.1 files: |- - YouTubeMusic/YouTubeMusic.zip + YouTubeMusic.zip + YouTubeMusic.sha api_key: '${{secrets.RELEASE_TOKEN}}'