This commit is contained in:
parent
52b8e57fc7
commit
1a929761d5
@ -23,18 +23,30 @@ jobs:
|
|||||||
PACKAGE_NAME: kit
|
PACKAGE_NAME: kit
|
||||||
PACKAGE_VERSION: ${{ github.ref_name }}
|
PACKAGE_VERSION: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
|
set -e # 遇到错误立即退出
|
||||||
echo ----------------------------------------
|
echo ----------------------------------------
|
||||||
echo ${{ github.ref_name }} ${{ github.sha }}
|
echo "Branch/Tag: ${{ github.ref_name }}"
|
||||||
|
echo "Commit SHA: ${{ github.sha }}"
|
||||||
bun -v
|
bun -v
|
||||||
cd kit
|
cd kit
|
||||||
bun i
|
bun i
|
||||||
|
|
||||||
|
echo "=== Building Windows ==="
|
||||||
bun run windows
|
bun run windows
|
||||||
curl -X POST \
|
ls -la ./dist/windows/
|
||||||
|
|
||||||
|
echo "=== Uploading Windows ==="
|
||||||
|
curl -v -X POST \
|
||||||
-H "Authorization: token $OBJECT_TOKEN" \
|
-H "Authorization: token $OBJECT_TOKEN" \
|
||||||
-F "data=@./dist/windows/kit.exe" \
|
-F "data=@./dist/windows/kit.exe" \
|
||||||
"$GITEA_BASE_URL/api/packages/$PACKAGE_OWNER/generic/$REPO_NAME/$PACKAGE_VERSION/kit.exe"
|
"$GITEA_BASE_URL/api/packages/$PACKAGE_OWNER/generic/$REPO_NAME/$PACKAGE_VERSION/kit.exe"
|
||||||
|
|
||||||
|
echo "=== Building Linux ==="
|
||||||
bun run linux
|
bun run linux
|
||||||
curl -X POST \
|
ls -la ./dist/linux/
|
||||||
|
|
||||||
|
echo "=== Uploading Linux ==="
|
||||||
|
curl -v -X POST \
|
||||||
-H "Authorization: token $OBJECT_TOKEN" \
|
-H "Authorization: token $OBJECT_TOKEN" \
|
||||||
-F "data=@./dist/linux/kit" \
|
-F "data=@./dist/linux/kit" \
|
||||||
"$GITEA_BASE_URL/api/packages/$PACKAGE_OWNER/generic/$REPO_NAME/$PACKAGE_VERSION/kit"
|
"$GITEA_BASE_URL/api/packages/$PACKAGE_OWNER/generic/$REPO_NAME/$PACKAGE_VERSION/kit"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user