Skip to content

Commit 4bd5ee8

Browse files
committed
ci: no more empty release tags?
1 parent 01b252b commit 4bd5ee8

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
packages: write
1313

1414
jobs:
15-
tag:
15+
create-tag:
1616
# Only run this job on merged PRs with specific labels or manual dispatch
1717
if: >
1818
github.event_name == 'workflow_dispatch' ||
@@ -83,19 +83,19 @@ jobs:
8383
else
8484
echo "VERSION_TYPE=patch" >> $GITHUB_ENV
8585
fi
86-
87-
- name: Create tag
88-
run: |
89-
# Check if tag already exists
90-
if git rev-parse "v${VERSION}" >/dev/null 2>&1; then
91-
echo "Tag v${VERSION} already exists, skipping tag creation"
92-
else
93-
git tag -a "v${VERSION}" -m "Version ${VERSION}"
94-
git push origin "v${VERSION}"
95-
fi
86+
87+
# - name: Create tag
88+
# run: |
89+
# # Check if tag already exists
90+
# if git rev-parse "v${VERSION}" >/dev/null 2>&1; then
91+
# echo "Tag v${VERSION} already exists, skipping tag creation"
92+
# else
93+
# git tag -a "v${VERSION}" -m "Version ${VERSION}"
94+
# git push origin "v${VERSION}"
95+
# fi
9696

9797
publish-encoderfile-core:
98-
needs: tag
98+
needs: create-tag
9999
runs-on: ubuntu-24.04
100100
steps:
101101
- uses: actions/checkout@v4
@@ -115,7 +115,7 @@ jobs:
115115
ENCODERFILE_DEV: "false"
116116

117117
build-encoderfile:
118-
needs: tag
118+
needs: create-tag
119119
runs-on: ${{ matrix.platform.runner }}
120120
strategy:
121121
matrix:
@@ -169,7 +169,7 @@ jobs:
169169

170170

171171
create-release:
172-
needs: [tag, build-encoderfile, publish-encoderfile-core]
172+
needs: [create-tag, build-encoderfile, publish-encoderfile-core]
173173
runs-on: ubuntu-latest
174174
permissions:
175175
contents: write
@@ -183,9 +183,9 @@ jobs:
183183
- name: Create GitHub Release
184184
uses: softprops/action-gh-release@v2
185185
with:
186-
tag_name: v${{ needs.tag.outputs.version }}
187-
name: v${{ needs.tag.outputs.version }}
188-
prerelease: ${{ needs.tag.outputs.prerelease }}
186+
tag_name: v${{ needs.create-tag.outputs.version }}
187+
name: v${{ needs.create-tag.outputs.version }}
188+
prerelease: ${{ needs.create-tag.outputs.prerelease }}
189189
files: dist/**/*.tar.gz
190190
env:
191191
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)