Skip to content

Commit b29601f

Browse files
committed
Merge branch 'dev'
2 parents 4a1bfc5 + 7cd59b5 commit b29601f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/publish_to_pypi.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ jobs:
3030

3131
- name: Fetch local package version
3232
run: |
33-
packageLocalVersion=$(python -c 'from version import version; print(version);')
33+
packageLocalVersion=$(python -c 'from version import version; print(version)')
3434
echo "localVersion=$packageLocalVersion" >> $GITHUB_ENV
3535
3636
- name: Fetch remote package version
3737
run: |
38-
packageRemoteVersion=$(python -c "exec(\"import pkg_resources\\n try: print(pkg_resources.get_distribution('osw-incline').version)\\n except pkg_resources.DistributionNotFound: print('0.0.0')\\n finally: print('Done checking version')\")")
38+
packageRemoteVersion=$(python -c "
39+
import pkg_resources
40+
try:
41+
print(pkg_resources.get_distribution('osw-incline').version)
42+
except pkg_resources.DistributionNotFound:
43+
print('0.0.0')
44+
")
3945
echo "remoteVersion=$packageRemoteVersion" >> $GITHUB_ENV
4046
4147
- name: Printing local and remote versions
@@ -49,7 +55,6 @@ jobs:
4955
exit 1
5056
fi
5157
52-
5358
- name: Setup python wheel
5459
run: pip install wheel
5560

@@ -59,5 +64,4 @@ jobs:
5964
- name: Publish package
6065
uses: pypa/gh-action-pypi-publish@release/v1
6166
with:
62-
password: ${{ secrets.PYPI_API_TOKEN }}
63-
67+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)