diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 21ef6cc..03a4eae 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -38,13 +38,16 @@ jobs: env: GIT_RELEASE_TOKEN: ${{ secrets.GIT_RELEASE_TOKEN }} run: | + TAG=${GITHUB_REF#refs/tags/} + echo "Tag is: $TAG" + RELEASE=$(curl -s -X POST \ -H "Authorization: token $GIT_RELEASE_TOKEN" \ -H "Content-Type: application/json" \ -d "{ - \"tag_name\": \"${{ github.ref_name }}\", - \"name\": \"${{ github.ref_name }}\", - \"body\": \"Release ${{ github.ref_name }}\", + \"tag_name\": \"$TAG\", + \"name\": \"$TAG\", + \"body\": \"Release $TAG\", \"draft\": false, \"prerelease\": false }" \