From 8109ffb2f1ae3038bb5a955bff1a5f07dd1400d2 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Fri, 7 Apr 2023 18:57:22 -0400 Subject: [PATCH] BUG: Fix prerelease upload by explicitly specifying the --prerelease-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 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 --- .circleci/config.yml | 1 + .github/workflows/CI.yml | 1 + appveyor.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8fdfc03..139e6be 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 "**" \ diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 59e1906..4961b5a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 "**" \ diff --git a/appveyor.yml b/appveyor.yml index d8c32af..6101d09 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 "**" `