Merge pull request 'fix: Use Gitea API for CI tag creation' (#12) from fix/ci-tag-release-api into main
All checks were successful
Build Docker Image / build (push) Successful in 48s
All checks were successful
Build Docker Image / build (push) Successful in 48s
Reviewed-on: #12
This commit is contained in:
commit
e0d86785a6
@ -87,17 +87,16 @@ jobs:
|
||||
cache-from: type=registry,ref=manticorum67/major-domo-discordapp:buildcache
|
||||
cache-to: type=registry,ref=manticorum67/major-domo-discordapp:buildcache,mode=max
|
||||
|
||||
# Create git tag and update VERSION file on successful push
|
||||
# Create git tag via Gitea API (avoids branch protection issues)
|
||||
- name: Tag release
|
||||
if: success() && github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
git config user.name "Gitea Actions"
|
||||
git config user.email "actions@git.manticorum.com"
|
||||
echo "${{ steps.meta.outputs.version }}" > VERSION
|
||||
git add VERSION
|
||||
git commit -m "chore: bump version to ${{ steps.meta.outputs.version }} [skip ci]" || true
|
||||
git tag "${{ steps.meta.outputs.version }}"
|
||||
git push origin main --tags
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token ${{ github.token }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"tag_name\": \"${{ steps.meta.outputs.version }}\", \"target\": \"${{ github.sha }}\", \"name\": \"${{ steps.meta.outputs.version }}\"}" \
|
||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/tags"
|
||||
echo "Created tag ${{ steps.meta.outputs.version }}"
|
||||
|
||||
- name: Build Summary
|
||||
run: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user