From b65b603a931768d146d8947f2a2189c7639b1668 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 16 Dec 2024 15:50:38 +0800 Subject: [PATCH] fix: ci --- .drone.yml | 15 ++++++++++++++- .releaserc | 4 +--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 80aabdf..e46a13d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -78,11 +78,20 @@ steps: - makensis Sources/nbn.nsi - ls Sources/Setup.exe - du -sh Sources/Setup.exe + + # zip打包 + - zip_name=$DRONE_REPO_NAME.$(cat .tags).zip + - cd ./Sources + - zip -q -r $zip_name ./ + - ls $zip_name + - ls + - pwd + when: branch: - test - - name: 上传exe到iot测试接口platformAppAdd + - name: 上传exe和zip到iot测试接口platformAppAdd pull: if-not-exists image: registry.cn-hangzhou.aliyuncs.com/qmiot/init:apisix-init-base environment: @@ -103,6 +112,10 @@ steps: - export package="/drone/src/target/Sources/Setup.exe" # 包名称 - export des=$CI_COMMIT_MESSAGE # 应用描述 - python3 iot_upload.py + + - export package="$DRONE_REPO_NAME.$(cat .tags).zip" # 包名称 + - python3 iot_upload.py + when: branch: - test diff --git a/.releaserc b/.releaserc index 8f55a5d..cde5375 100644 --- a/.releaserc +++ b/.releaserc @@ -19,9 +19,7 @@ "@semantic-release/release-notes-generator", "@semantic-release/git", ["@saithodev/semantic-release-gitea", { - "giteaUrl": "https://git.1000my.com", - "assets": [ - ] + "giteaUrl": "https://git.1000my.com" }] ] } \ No newline at end of file