5959 # Will run after the job 'tests'
6060 needs : [tests]
6161
62- if : startsWith(github.ref, 'refs/tags/')
62+ if : >
63+ startsWith(github.ref, 'refs/tags/') ||
64+ startsWith(github.ref, 'refs/heads/release/')
6365 runs-on : ubuntu-latest
64-
6566 # Required for installation of the test package in the
6667 # next job.
6768 outputs :
7475 id : extract_version
7576 run : |
7677 VERSION=$(cat pyproject.toml | grep -oE -m 1 "version = \"(.*)\"" | cut -f2 -d '"')
77- echo "Version: $VERSION"
78- echo "::set-output name= version::$ VERSION"
78+ echo "Version: ${ VERSION} "
79+ echo "version=${ VERSION}" >> $GITHUB_OUTPUT
7980
8081 # For publishing any version will do
8182 - name : Set up Python 3.10
@@ -114,7 +115,9 @@ jobs:
114115 # Test install from pypi to see if we have any installation bugs.
115116 test-install :
116117 needs : [test-publish]
117- if : startsWith(github.ref, 'refs/tags/')
118+ if : >
119+ startsWith(github.ref, 'refs/tags/') ||
120+ startsWith(github.ref, 'refs/heads/release/')
118121
119122 runs-on : ubuntu-latest
120123
@@ -135,7 +138,7 @@ jobs:
135138 python -m pip install \
136139 --index-url https://test.pypi.org/simple/ \
137140 --extra-index-url https://pypi.org/simple \
138- lasso-python=="$VERSION"
141+ lasso-python=="${ VERSION} "
139142 # JOB
140143 # Finally publish the code to pypi
141144 publish :
0 commit comments