diff --git a/.github/workflows/githubci.yml b/.github/workflows/githubci.yml index a6838454..b671fbae 100644 --- a/.github/workflows/githubci.yml +++ b/.github/workflows/githubci.yml @@ -36,9 +36,14 @@ jobs: - name: Upload Release Asset if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested') - working-directory: tools env: UPLOAD_URL: ${{ github.event.release.upload_url }} ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: "[ -z \"$ADABOT_GITHUB_ACCESS_TOKEN\" ] || python3 -u upload_release_files.py" + run: "[ -z \"$ADABOT_GITHUB_ACCESS_TOKEN\" ] || python3 -u tools/upload_release_files.py" + - name: Upload Artifacts + if: github.event_name != 'release' + uses: actions/upload-artifact@v2 + with: + name: bin-artifacts + path: bin/ diff --git a/tools/build_all.py b/tools/build_all.py index 8dd36802..5d0b3af5 100644 --- a/tools/build_all.py +++ b/tools/build_all.py @@ -67,4 +67,8 @@ print("Build Sumamary: {} \033[32msucceeded\033[0m, {} \033[31mfailed\033[0m and took {:.2f}s".format(success_count, fail_count, total_time)) print(build_separator) -sys.exit(exit_status) +if success_count > 0: + print('Exit status:' + str(exit_status)) + sys.exit(0) +else: + sys.exit(exit_status)