diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index d445186..7629e90 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -8,6 +8,13 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build Binary + env: + OBJECT_TOKEN: ${{ secrets.OBJECT_TOKEN }} # 需要在Gitea项目设置中配置的密钥 + GITEA_BASE_URL: http://git.honor3.com # 你的Gitea实例地址 + PACKAGE_OWNER: Fullstack # 仓库所有者用户名 + REPO_NAME: kit.program # 仓库名 + PACKAGE_NAME: kit + PACKAGE_VERSION: ${{ github.ref_name }} # 使用分支名或标签作为版本 run: | echo ---------------------------------------- echo ${{ github.ref_name }} ${{ github.sha }} @@ -16,3 +23,11 @@ jobs: bun i bun run windows bun run linux + curl -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" + curl -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" \ No newline at end of file