From aaf141e338afcc89e1fc5734b12098f878abdaf4 Mon Sep 17 00:00:00 2001 From: Nix <75538775+nixietab@users.noreply.github.com> Date: Tue, 31 Dec 2024 11:37:28 -0300 Subject: [PATCH] Update Build.yml --- .github/workflows/Build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 9bb1240..b6a00ae 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -43,6 +43,10 @@ jobs: echo "VERSION=$VERSION" >> $GITHUB_ENV # Store version in the environment variable echo "NAME=$NAME" >> $GITHUB_ENV # Store name in the environment variable + - name: Check if tag exists + run: | + git tag # List the tags in the repository to check if the tag exists + - name: Tag release run: | # Set Git user for the GitHub Actions runner @@ -50,10 +54,9 @@ jobs: git config user.email "github-actions@github.com" # Create the tag and push it to GitHub - $VERSION_NAME = "${env:VERSION} ${env:NAME}" - git tag -a "v${env:VERSION}" -m "Release $VERSION_NAME" # Tag the release with version number and name - git push origin "v${env:VERSION}" # Push the tag to GitHub - + VERSION_NAME="${{ env.VERSION }} ${{ env.NAME }}" + git tag -a "v${{ env.VERSION }}" -m "Release $VERSION_NAME" # Tag the release with version number and name + git push origin --tags # Push all tags to GitHub - name: Create Release uses: softprops/action-gh-release@v1