diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 9ab31dd2..86e40a44 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -8,8 +8,6 @@ on: jobs: build-linux-amd64: runs-on: linux-amd64 - env: - RELEASE_TAG: ${{ github.ref_name }} container: image: rust:1.88-slim steps: @@ -39,7 +37,7 @@ jobs: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: | API="http://172.0.0.29:3000/api/v1/repos/$GITHUB_REPOSITORY" - TAG="$RELEASE_TAG" + TAG="$GITHUB_REF_NAME" # Create release (idempotent) curl -sf -X POST "$API/releases" \ -H "Authorization: token $RELEASE_TOKEN" \ @@ -57,8 +55,6 @@ jobs: build-windows-amd64: runs-on: linux-amd64 - env: - RELEASE_TAG: ${{ github.ref_name }} container: image: rust:1.88-slim steps: @@ -90,7 +86,7 @@ jobs: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: | API="http://172.0.0.29:3000/api/v1/repos/$GITHUB_REPOSITORY" - TAG="$RELEASE_TAG" + TAG="$GITHUB_REF_NAME" curl -sf -X POST "$API/releases" \ -H "Authorization: token $RELEASE_TOKEN" \ -H "Content-Type: application/json" \ @@ -106,8 +102,6 @@ jobs: build-linux-arm64: runs-on: linux-arm64 - env: - RELEASE_TAG: ${{ github.ref_name }} container: image: rust:1.88-slim steps: @@ -137,7 +131,7 @@ jobs: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: | API="http://172.0.0.29:3000/api/v1/repos/$GITHUB_REPOSITORY" - TAG="$RELEASE_TAG" + TAG="$GITHUB_REF_NAME" curl -sf -X POST "$API/releases" \ -H "Authorization: token $RELEASE_TOKEN" \ -H "Content-Type: application/json" \