We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8587b53 commit d96f9baCopy full SHA for d96f9ba
.github/workflows/release.yml
@@ -192,6 +192,19 @@ jobs:
192
echo "$ASSETS" >> $GITHUB_ENV
193
echo "EOF" >> $GITHUB_ENV
194
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
208
- name: Create GitHub Release and Upload Assets
209
uses: softprops/action-gh-release@v2
210
with:
0 commit comments