Merge pull request 'ci: Use Gitea API for tag creation' (#4) from ci/api-tags into main
All checks were successful
Build Docker Image / build (push) Successful in 42s
All checks were successful
Build Docker Image / build (push) Successful in 42s
Reviewed-on: #4
This commit is contained in:
commit
36f01a2d61
@ -87,17 +87,16 @@ jobs:
|
|||||||
cache-from: type=registry,ref=manticorum67/paper-dynasty-database:buildcache
|
cache-from: type=registry,ref=manticorum67/paper-dynasty-database:buildcache
|
||||||
cache-to: type=registry,ref=manticorum67/paper-dynasty-database:buildcache,mode=max
|
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
|
- name: Tag release
|
||||||
if: success() && github.ref == 'refs/heads/main'
|
if: success() && github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
git config user.name "Gitea Actions"
|
curl -s -X POST \
|
||||||
git config user.email "actions@git.manticorum.com"
|
-H "Authorization: token ${{ github.token }}" \
|
||||||
echo "${{ steps.meta.outputs.version }}" > VERSION
|
-H "Content-Type: application/json" \
|
||||||
git add VERSION
|
-d "{\"tag_name\": \"${{ steps.meta.outputs.version }}\", \"target\": \"${{ github.sha }}\", \"name\": \"${{ steps.meta.outputs.version }}\"}" \
|
||||||
git commit -m "chore: bump version to ${{ steps.meta.outputs.version }} [skip ci]" || true
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/tags"
|
||||||
git tag "${{ steps.meta.outputs.version }}"
|
echo "Created tag ${{ steps.meta.outputs.version }}"
|
||||||
git push origin main --tags
|
|
||||||
|
|
||||||
- name: Build Summary
|
- name: Build Summary
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -82,3 +82,4 @@ postgres_data/
|
|||||||
# Local utility files
|
# Local utility files
|
||||||
README_GAUNTLET_CLEANUP.md
|
README_GAUNTLET_CLEANUP.md
|
||||||
wipe_gauntlet_team.py
|
wipe_gauntlet_team.py
|
||||||
|
SCHEMA.md
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user