:5 testci
Some checks failed
TDevOPsCICD / build-image (push) Failing after 1m21s

This commit is contained in:
cheney 2025-10-22 15:41:15 +08:00
parent 38cf2d53d8
commit 94709a25e6

View File

@ -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"