Browse Source

fix: ci

test
Your Name 2 years ago
parent
commit
b65b603a93
  1. 15
      .drone.yml
  2. 4
      .releaserc

15
.drone.yml

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

4
.releaserc

@ -19,9 +19,7 @@
"@semantic-release/release-notes-generator", "@semantic-release/release-notes-generator",
"@semantic-release/git", "@semantic-release/git",
["@saithodev/semantic-release-gitea", { ["@saithodev/semantic-release-gitea", {
"giteaUrl": "https://git.1000my.com",
"assets": [
]
"giteaUrl": "https://git.1000my.com"
}] }]
] ]
} }
Loading…
Cancel
Save