From 035811115edecb21ce2b16318623a2f5b4ef48d1 Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Thu, 23 Oct 2025 17:08:05 -0700 Subject: [PATCH] try 3 --- .gitea/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index cedbf6d..e1b1dcb 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -10,6 +10,7 @@ on: jobs: build: runs-on: prodesk + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -30,9 +31,10 @@ jobs: TAGS="calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest" TAGS="$TAGS calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}" - # Only add tag if this is a v* tag push - if [[ "${GITHUB_REF}" == refs/tags/v* ]]; then - TAGS="$TAGS calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:${GITHUB_REF#refs/tags/}" + # Add version tag if this is a v* tag push + if [[ "${{ github.ref }}" == refs/tags/v* ]]; then + TAG_NAME="${{ github.ref_name }}" + TAGS="$TAGS calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:${TAG_NAME}" fi echo "TAGS=$TAGS" >> $GITHUB_ENV