Skip to content

Commit d96f9ba

Browse files
committed
ci: explicitly set tag
1 parent 8587b53 commit d96f9ba

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,19 @@ jobs:
192192
echo "$ASSETS" >> $GITHUB_ENV
193193
echo "EOF" >> $GITHUB_ENV
194194
195+
- name: Create and push tag using Git
196+
env:
197+
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
198+
run: |
199+
git config user.name "GitHub Action"
200+
git config user.email "action@github.com"
201+
202+
# Create annotated tag
203+
git tag -a "v${{ env.VERSION }}" -m "Release v${{ env.VERSION }}"
204+
205+
# Push tag using PAT authentication
206+
git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }}.git "v${{ env.VERSION }}"
207+
195208
- name: Create GitHub Release and Upload Assets
196209
uses: softprops/action-gh-release@v2
197210
with:

0 commit comments

Comments
 (0)