From 1a929761d576cf1cb0587efb6a858558c28cc9d1 Mon Sep 17 00:00:00 2001 From: cheney Date: Tue, 21 Jul 2026 14:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=88=90=E5=8A=9F=EF=BC=8C?= =?UTF-8?q?=E4=BD=86=E6=98=AF=E7=9B=AE=E6=A0=87=E4=BB=A3=E7=A0=81=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E4=BF=9D=E5=AD=98=E4=B8=8B=E6=9D=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 7a3e5a3..0476d1d 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -23,18 +23,30 @@ jobs: PACKAGE_NAME: kit PACKAGE_VERSION: ${{ github.ref_name }} run: | + set -e # 遇到错误立即退出 echo ---------------------------------------- - echo ${{ github.ref_name }} ${{ github.sha }} + echo "Branch/Tag: ${{ github.ref_name }}" + echo "Commit SHA: ${{ github.sha }}" bun -v cd kit bun i + + echo "=== Building Windows ===" bun run windows - curl -X POST \ + ls -la ./dist/windows/ + + echo "=== Uploading Windows ===" + curl -v -X POST \ -H "Authorization: token $OBJECT_TOKEN" \ -F "data=@./dist/windows/kit.exe" \ "$GITEA_BASE_URL/api/packages/$PACKAGE_OWNER/generic/$REPO_NAME/$PACKAGE_VERSION/kit.exe" + + echo "=== Building Linux ===" bun run linux - curl -X POST \ + ls -la ./dist/linux/ + + echo "=== Uploading Linux ===" + curl -v -X POST \ -H "Authorization: token $OBJECT_TOKEN" \ -F "data=@./dist/linux/kit" \ "$GITEA_BASE_URL/api/packages/$PACKAGE_OWNER/generic/$REPO_NAME/$PACKAGE_VERSION/kit"