Clean the yml script
CI / Export Windows (push) Failing after 43s
CI / Export Linux (push) Failing after 1m4s
CI / Export Android (push) Failing after 55s
Test Suite / Unit Tests (GUT) (push) Failing after 39s
Test Suite / Integration Tests (push) Failing after 46s
Test Suite / Code Style Check (push) Failing after 46s
CI / Create Release (push) Has been skipped
Test Suite / Security Scan (push) Failing after 1m1s

This commit is contained in:
2026-07-02 16:40:52 +08:00
parent 82763e4d5a
commit e539a862d5
9 changed files with 208 additions and 142 deletions
+43 -17
View File
@@ -18,11 +18,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Setup SSH config for Gitea
run: |
mkdir -p ~/.ssh
echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" > ~/.ssh/config
- name: Checkout repository
uses: actions/checkout@v4
with:
@@ -44,15 +39,20 @@ jobs:
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
- name: Run patch build script
env:
PATCH_VERSION: ${{ github.event.inputs.version }}
PATCH_NOTES: ${{ github.event.inputs.notes }}
run: |
python3 patch_version.py ${{ github.event.inputs.version }} "${{ github.event.inputs.notes }}"
python3 patch_version.py "$PATCH_VERSION" "$PATCH_NOTES"
- name: Export Windows patch
run: |
mkdir -p build
godot --headless --export-release "Windows Desktop" build/tekton_armageddon_patch_windows.exe
- name: Export Linux patch
run: |
mkdir -p build
godot --headless --export-release "Linux/X11" build/tekton_armageddon_patch_linux.x86_64
- name: Upload patch artifacts
@@ -78,14 +78,40 @@ jobs:
name: tekton-patch-${{ github.event.inputs.version }}
path: artifacts/patch
- name: Create patch release
uses: softprops/action-gh-release@v2
with:
tag_name: patch-${{ github.event.inputs.version }}
name: "Patch ${{ github.event.inputs.version }}"
body: |
${{ github.event.inputs.notes }}
files: |
artifacts/patch/tekton_armageddon_patch_windows.exe
artifacts/patch/tekton_armageddon_patch_linux.x86_64
prerelease: true
- name: Get or create Gitea patch release
id: gitea_release
env:
GITEA_TOKEN: ${{ secrets.TEKTON_RELEASE_TOKEN }}
TAG_NAME: patch-${{ github.event.inputs.version }}
RELEASE_NAME: "Patch ${{ github.event.inputs.version }}"
RELEASE_NOTES: ${{ github.event.inputs.notes }}
run: |
API="https://git.klud.top/api/v1/repos/danchie/tekton/releases"
RELEASE_JSON=$(curl -s -H "Authorization: token $GITEA_TOKEN" "$API/tags/$TAG_NAME")
RELEASE_ID=$(echo "$RELEASE_JSON" | python3 -c "import json,sys; print(json.load(sys.stdin).get('id',''))" 2>/dev/null)
if [ -z "$RELEASE_ID" ]; then
PAYLOAD=$(python3 -c "import json, os; print(json.dumps({'tag_name': os.environ['TAG_NAME'], 'name': os.environ['RELEASE_NAME'], 'body': os.environ['RELEASE_NOTES'], 'prerelease': True}))")
RELEASE_JSON=$(curl -s -X POST \
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \
-d "$PAYLOAD" \
"$API")
RELEASE_ID=$(echo "$RELEASE_JSON" | python3 -c "import json,sys; print(json.load(sys.stdin)['id'])")
fi
echo "release_id=$RELEASE_ID" >> "$GITHUB_OUTPUT"
- name: Upload Windows patch asset
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
-H "Content-Type: multipart/form-data" \
-F "attachment=@artifacts/patch/tekton_armageddon_patch_windows.exe" \
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
- name: Upload Linux patch asset
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
-H "Content-Type: multipart/form-data" \
-F "attachment=@artifacts/patch/tekton_armageddon_patch_linux.x86_64" \
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"