Skip to content

Commit

Permalink
<fix>(build): fix release build. (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyonRay committed Mar 24, 2023
1 parent ac903ab commit 6303fc0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish_binary.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Build with Gradle
run: ./gradlew assemble
- name: Download plugin
run: cd dist/ && bash download_plugin.sh BCOS2 v1.3.0 && bash download_plugin.sh Fabric1 v1.3.0 && bash download_plugin.sh Fabric2 v1.3.0 && bash download_pages.sh v1.3.0 && rm -rf src && cd -
run: cd dist/ && bash download_plugin.sh ALL v1.3.0 && bash download_pages.sh v1.3.0 && rm -rf src && cd -
- name: Pack
run: chmod +x dist/*.sh && mv dist WeCross && tar -zcvf WeCross.tar.gz WeCross
- name: Checksum
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_demo.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Download demo requirements
run: cd demo/ && bash .prepare.sh && cd -
- name: Chmod
run: chmod +x demo/*.sh && chmod +x demo/bcos/*.sh && chmod +x demo/fabric/*.sh && chmod +x demo/fabric2/*.sh
run: chmod +x demo/*.sh && chmod +x demo/*/*.sh
- name: Pack
run: tar -zcvf demo.tar.gz demo/
- name: Checksum
Expand Down
6 changes: 6 additions & 0 deletions scripts/download_plugin.sh
Expand Up @@ -105,6 +105,12 @@ main() {
local name=${1}
local tag=${2}
case ${name} in
ALL)
build_plugin_from_source WeCross-BCOS2-Stub ${bcos_stub_url} ${tag}
build_plugin_from_source WeCross-BCOS3-Stub ${bcos3_stub_url} ${tag}
build_plugin_from_source WeCross-Fabric1-Stub ${fabric_stub_url} ${tag}
build_plugin_from_source WeCross-Fabric2-Stub ${fabric2_stub_url} ${tag}
;;
BCOS2)
build_plugin_from_source WeCross-BCOS2-Stub ${bcos_stub_url} ${tag}
;;
Expand Down

0 comments on commit 6303fc0

Please sign in to comment.