This commit is contained in:
@@ -3,7 +3,7 @@ name: Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- "v*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -20,8 +20,8 @@ jobs:
|
|||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
run: |
|
run: |
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
echo "http://god:${{ secrets.TEKTON_RELEASE_TOKEN }}@52.74.133.55:3000" > ~/.git-credentials
|
echo "http://god:${{ secrets.TEKTON_RELEASE_TOKEN }}@ssh.git.klud.top" > ~/.git-credentials
|
||||||
git clone http://52.74.133.55:3000/danchie/tekton.git .
|
git clone http://ssh.git.klud.top/danchie/tekton.git .
|
||||||
git checkout $TAG_NAME
|
git checkout $TAG_NAME
|
||||||
|
|
||||||
- name: Setup Godot (Cached)
|
- name: Setup Godot (Cached)
|
||||||
@@ -85,7 +85,7 @@ jobs:
|
|||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
API="http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases"
|
API="http://ssh.git.klud.top/api/v1/repos/danchie/tekton/releases"
|
||||||
TAG="$TAG_NAME"
|
TAG="$TAG_NAME"
|
||||||
echo "Checking existing release for $TAG..."
|
echo "Checking existing release for $TAG..."
|
||||||
RELEASE_JSON=$(curl -s -H "Authorization: token $GITEA_TOKEN" "$API/tags/$TAG" 2>/dev/null || echo "")
|
RELEASE_JSON=$(curl -s -H "Authorization: token $GITEA_TOKEN" "$API/tags/$TAG" 2>/dev/null || echo "")
|
||||||
@@ -116,7 +116,7 @@ jobs:
|
|||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
-F "attachment=@build/tekton_armageddon_windows_${TAG_NAME}.zip" \
|
-F "attachment=@build/tekton_armageddon_windows_${TAG_NAME}.zip" \
|
||||||
"http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
"http://ssh.git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
||||||
echo "Windows uploaded"
|
echo "Windows uploaded"
|
||||||
|
|
||||||
- name: Upload Linux asset
|
- name: Upload Linux asset
|
||||||
@@ -126,7 +126,7 @@ jobs:
|
|||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
-F "attachment=@build/tekton_armageddon_linux_${TAG_NAME}.zip" \
|
-F "attachment=@build/tekton_armageddon_linux_${TAG_NAME}.zip" \
|
||||||
"http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
"http://ssh.git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
||||||
echo "Linux uploaded"
|
echo "Linux uploaded"
|
||||||
|
|
||||||
- name: Upload macOS asset
|
- name: Upload macOS asset
|
||||||
@@ -137,7 +137,7 @@ jobs:
|
|||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
-F "attachment=@build/tekton_armageddon_macos_${TAG_NAME}.zip" \
|
-F "attachment=@build/tekton_armageddon_macos_${TAG_NAME}.zip" \
|
||||||
"http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
"http://ssh.git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
||||||
echo "macOS uploaded"
|
echo "macOS uploaded"
|
||||||
else
|
else
|
||||||
echo "macOS asset not built, skipping"
|
echo "macOS asset not built, skipping"
|
||||||
@@ -150,5 +150,5 @@ jobs:
|
|||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"draft":false}' \
|
-d '{"draft":false}' \
|
||||||
"http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID"
|
"http://ssh.git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID"
|
||||||
echo "Published: https://git.klud.top/danchie/tekton/releases/tag/$TAG_NAME"
|
echo "Published: https://git.klud.top/danchie/tekton/releases/tag/$TAG_NAME"
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Patch version (e.g., 2.4.2)'
|
description: "Patch version (e.g., 2.4.4)"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
notes:
|
notes:
|
||||||
description: 'Release notes'
|
description: "Release notes"
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.TEKTON_RELEASE_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.TEKTON_RELEASE_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 http://god:$GITEA_TOKEN@52.74.133.55:3000/danchie/tekton.git .
|
git clone --depth 1 http://god:$GITEA_TOKEN@ssh.git.klud.top/danchie/tekton.git .
|
||||||
git config user.name "god"
|
git config user.name "god"
|
||||||
git config user.email "god@noreply.git.klud.top"
|
git config user.email "god@noreply.git.klud.top"
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
git init
|
git init
|
||||||
git config user.name "god"
|
git config user.name "god"
|
||||||
git config user.email "god@noreply.git.klud.top"
|
git config user.email "god@noreply.git.klud.top"
|
||||||
git remote add origin http://god:$GITEA_TOKEN@52.74.133.55:3000/danchie/tekton.git
|
git remote add origin http://god:$GITEA_TOKEN@ssh.git.klud.top/danchie/tekton.git
|
||||||
git checkout -b patches
|
git checkout -b patches
|
||||||
git add .
|
git add .
|
||||||
git commit -m "patch ${{ github.event.inputs.version }}"
|
git commit -m "patch ${{ github.event.inputs.version }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user