File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -65,18 +65,11 @@ jobs:
65
65
# Required for installation of the test package in the
66
66
# next job.
67
67
outputs :
68
- version : ${{ steps.extract_version .outputs.version }}
68
+ version : ${{ steps.get_version .outputs.version }}
69
69
70
70
steps :
71
71
- uses : actions/checkout@v3
72
72
73
- - name : Remember version
74
- id : extract_version
75
- run : |
76
- VERSION=$(cat pyproject.toml | grep -oE -m 1 "version = \"(.*)\"" | cut -f2 -d '"')
77
- echo "Version: ${VERSION}"
78
- echo "version=${VERSION}" >> $GITHUB_OUTPUT
79
-
80
73
# For publishing any version will do
81
74
- name : Set up Python 3.11
82
75
uses : actions/setup-python@v4
@@ -103,6 +96,12 @@ jobs:
103
96
- name : Build packages for release
104
97
run : ./bin/task build
105
98
99
+ - name : Get package version
100
+ id : get_version
101
+ run : |
102
+ VERSION=$(basename dist/*.whl | cut -d- -f2)
103
+ echo "version=${VERSION}" >> $GITHUB_OUTPUT
104
+
106
105
- name : Publish distribution to Test PyPI
107
106
env :
108
107
TWINE_REPOSITORY_URL : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments