From 581ecabdda80f717db5f960f924bd919fd2e1c23 Mon Sep 17 00:00:00 2001 From: matteo Date: Sat, 16 Mar 2024 09:49:40 +0100 Subject: [PATCH] Update .gitea/workflows/release.yaml --- .gitea/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}}'