ci: Use Gitea API for tag creation to avoid branch protection issues
All checks were successful
Build Docker Image / build (pull_request) Successful in 43s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-02-17 17:23:21 -06:00
parent d3ffb89e6e
commit eff6c1136b
2 changed files with 8 additions and 8 deletions

View File

@ -87,17 +87,16 @@ jobs:
cache-from: type=registry,ref=manticorum67/paper-dynasty-database:buildcache
cache-to: type=registry,ref=manticorum67/paper-dynasty-database: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: |

1
.gitignore vendored
View File

@ -82,3 +82,4 @@ postgres_data/
# Local utility files
README_GAUNTLET_CLEANUP.md
wipe_gauntlet_team.py
SCHEMA.md