From 598065f25581358ab29bf16df686e6f802c2a989 Mon Sep 17 00:00:00 2001 From: adtpdn Date: Thu, 2 Jul 2026 10:33:50 +0800 Subject: [PATCH] feat: test workflows --- .gitea/workflows/upload_pck.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/upload_pck.yml diff --git a/.gitea/workflows/upload_pck.yml b/.gitea/workflows/upload_pck.yml new file mode 100644 index 0000000..656e70a --- /dev/null +++ b/.gitea/workflows/upload_pck.yml @@ -0,0 +1,35 @@ +name: Upload PCK to Gitea Release +on: + push: + tags: + - 'v*' + +jobs: + upload: + runs-on: ubuntu-latest + container: + image: barichello/godot-ci:4.3 + steps: + - name: Checkout + run: | + git clone https://git.klud.top/danchie/tekton.git . + git checkout ${{ github.ref_name }} + + - name: Build PCK + run: godot --headless -s tools/build_patch.gd + + - name: Upload PCK to Release + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \ + -H "Content-Type: multipart/form-data" \ + -F "attachment=@patch.pck" \ + "https://git.klud.top/api/v1/repos/danchie/tekton/releases/tags/${{ github.ref_name }}" + + - name: Upload version.json to Release + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \ + -H "Content-Type: multipart/form-data" \ + -F "attachment=@assets/data/version.json" \ + "https://git.klud.top/api/v1/repos/danchie/tekton/releases/tags/${{ github.ref_name }}" \ No newline at end of file