Skip to content

Commit 2025051

Browse files
committed
fix: update release.yml to remove 'v' prefix from version tags and messages
1 parent f377078 commit 2025051

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ jobs:
5757
- name: Check if tag exists
5858
id: check_tag
5959
run: |
60-
if git rev-parse "v${{ env.VERSION }}" >/dev/null 2>&1; then
60+
if git rev-parse "${{ env.VERSION }}" >/dev/null 2>&1; then
6161
echo "exists=true" >> $GITHUB_OUTPUT
62-
echo "Tag v${{ env.VERSION }} already exists"
62+
echo "Tag ${{ env.VERSION }} already exists"
6363
else
6464
echo "exists=false" >> $GITHUB_OUTPUT
65-
echo "Tag v${{ env.VERSION }} does not exist"
65+
echo "Tag ${{ env.VERSION }} does not exist"
6666
fi
6767
6868
- name: Build with Gradle
@@ -91,17 +91,17 @@ jobs:
9191
run: |
9292
git config user.name "github-actions[bot]"
9393
git config user.email "github-actions[bot]@users.noreply.github.com"
94-
git tag -a "v${{ env.VERSION }}" -m "Release version ${{ env.VERSION }}"
95-
git push origin "v${{ env.VERSION }}"
94+
git tag -a "${{ env.VERSION }}" -m "Release version ${{ env.VERSION }}"
95+
git push origin "${{ env.VERSION }}"
9696
9797
- name: Create GitHub Release
9898
if: github.event_name == 'push' && steps.check_tag.outputs.exists == 'false'
9999
uses: softprops/action-gh-release@v2
100100
with:
101-
tag_name: v${{ env.VERSION }}
102-
name: Release v${{ env.VERSION }}
101+
tag_name: ${{ env.VERSION }}
102+
name: Release ${{ env.VERSION }}
103103
body: |
104-
## PluginLangCore v${{ env.VERSION }}
104+
## PluginLangCore ${{ env.VERSION }}
105105
106106
### 📦 Artifacts
107107
- Main JAR: `PluginLangCore-${{ env.VERSION }}.jar`
@@ -145,9 +145,9 @@ jobs:
145145
run: |
146146
if [ "${{ steps.check_tag.outputs.exists }}" == "true" ]; then
147147
echo "✅ Build completed successfully"
148-
echo "ℹ️ Release v${{ env.VERSION }} already exists, skipping release creation"
148+
echo "ℹ️ Release ${{ env.VERSION }} already exists, skipping release creation"
149149
else
150150
echo "✅ Build completed successfully"
151-
echo "🚀 Release v${{ env.VERSION }} created successfully"
151+
echo "🚀 Release ${{ env.VERSION }} created successfully"
152152
echo "📦 Artifacts uploaded to GitHub Release"
153153
fi

0 commit comments

Comments
 (0)