Skip to content

Commit

Permalink
BUG: Fix prerelease upload by explicitly specifying the --prerelease-…
Browse files Browse the repository at this point in the history
…sha argument

This commit fixes error like the following introduced by the previous commit:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/anyci/publish_github_release.py", line 597, in <module>
    main()
  File "/usr/local/lib/python3.9/site-packages/anyci/publish_github_release.py", line 590, in main
    _upload_prerelease(args)
  File "/usr/local/lib/python3.9/site-packages/anyci/publish_github_release.py", line 481, in _upload_prerelease
    raise ValueError("Failed to get commit associated with --prerelease-sha: %s" % sha)
ValueError: Failed to get commit associated with --prerelease-sha: master

Exited with code exit status 1
  • Loading branch information
jcfr committed Apr 7, 2023
1 parent 70cfa09 commit 8109ffb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
cd /usr/src/AppLauncher
ci_addons publish_github_release commontk/applauncher \
--exit-success-if-missing-token \
--prerelease-sha main \
--prerelease-packages /usr/src/AppLauncher-build/CTKAppLauncher-*.tar.gz \
--prerelease-packages-clear-pattern "*linux*" \
--prerelease-packages-keep-pattern "*<COMMIT_SHORT_SHA>*" \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
# cd src
# ci_addons publish_github_release commontk/applauncher \
# --exit-success-if-missing-token \
# --prerelease-sha main \
# --prerelease-packages ../build/CTKAppLauncher-*.tar.gz \
# --prerelease-packages-clear-pattern "*macosx*" \
# --prerelease-packages-keep-pattern "*<COMMIT_SHORT_SHA>*" \
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ test_script:
pip install scikit-ci-addons==0.18.0
ci_addons publish_github_release commontk/applauncher `
--exit-success-if-missing-token `
--prerelease-sha main `
--prerelease-packages CTKAppLauncher-*.tar.gz `
--prerelease-packages-clear-pattern "*win*" ` `
--prerelease-packages-keep-pattern "*<COMMIT_SHORT_SHA>*" `
Expand Down

0 comments on commit 8109ffb

Please sign in to comment.