File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,21 @@ name: Publish to PyPi
23
23
# 9. Push latest release source code to master using release title as the commit message
24
24
# 10. Builds latest documentation for new release, and update latest alias pointing to the new release tag
25
25
26
+ #
27
+ # === Fallback mechanism due to external failures ===
28
+ #
29
+ # 1. Trigger "Publish to PyPi" workflow manually: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
30
+ # 2. Use the version released under Releases e.g. v1.13.0
31
+ #
32
+
26
33
on :
27
34
release :
28
35
types : [published]
36
+ workflow_dispatch :
37
+ inputs :
38
+ publish_version :
39
+ description : ' Version to publish, e.g. v1.13.0'
40
+ required : true
29
41
30
42
jobs :
31
43
release :
40
52
python-version : " 3.8"
41
53
- name : Set release notes tag
42
54
run : |
43
- export RELEASE_TAG_VERSION=${{ github.event.release.tag_name }}
55
+ RELEASE_TAG_VERSION=${{ github.event.release.tag_name }}
56
+ # Replace publishing version if the workflow was triggered manually
57
+ test -n $RELEASE_TAG_VERSION && RELEASE_TAG_VERSION=${{ github.event.inputs.publish_version }}
44
58
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV
45
59
- name : Ensure new version is also set in pyproject and CHANGELOG
46
60
run : |
You can’t perform that action at this time.
0 commit comments