|
|
@ -78,11 +78,20 @@ steps: |
|
|
- makensis Sources/nbn.nsi |
|
|
- makensis Sources/nbn.nsi |
|
|
- ls Sources/Setup.exe |
|
|
- ls Sources/Setup.exe |
|
|
- du -sh 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: |
|
|
when: |
|
|
branch: |
|
|
branch: |
|
|
- test |
|
|
- test |
|
|
|
|
|
|
|
|
- name: 上传exe到iot测试接口platformAppAdd |
|
|
|
|
|
|
|
|
- name: 上传exe和zip到iot测试接口platformAppAdd |
|
|
pull: if-not-exists |
|
|
pull: if-not-exists |
|
|
image: registry.cn-hangzhou.aliyuncs.com/qmiot/init:apisix-init-base |
|
|
image: registry.cn-hangzhou.aliyuncs.com/qmiot/init:apisix-init-base |
|
|
environment: |
|
|
environment: |
|
|
@ -103,6 +112,10 @@ steps: |
|
|
- export package="/drone/src/target/Sources/Setup.exe" # 包名称 |
|
|
- export package="/drone/src/target/Sources/Setup.exe" # 包名称 |
|
|
- export des=$CI_COMMIT_MESSAGE # 应用描述 |
|
|
- export des=$CI_COMMIT_MESSAGE # 应用描述 |
|
|
- python3 iot_upload.py |
|
|
- python3 iot_upload.py |
|
|
|
|
|
|
|
|
|
|
|
- export package="$DRONE_REPO_NAME.$(cat .tags).zip" # 包名称 |
|
|
|
|
|
- python3 iot_upload.py |
|
|
|
|
|
|
|
|
when: |
|
|
when: |
|
|
branch: |
|
|
branch: |
|
|
- test |
|
|
- test |
|
|
|