diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 6800a7b..6bc07c3 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -18,12 +18,12 @@ jobs: with: go-version: '>=1.20.1' - run: cd YouTubeMusic && zip -r YouTubeMusic.zip . && mv YouTubeMusic.zip ../ - - run: sha1sum YouTubeMusic.zip > YouTubeMusic.sha + - run: sha1=$(sha1sum YouTubeMusic.zip) | cut -d ' ' -f1) && sed -i "s||$sha1|" repo.xml - name: Release uses: https://gitea.com/actions/release-action@main with: tag_name: 0.0.1 files: |- YouTubeMusic.zip - YouTubeMusic.sha + repo.xml api_key: '${{secrets.RELEASE_TOKEN}}'