update workflow
This commit is contained in:
4
.github/workflows/publish-to-pypi.yml
vendored
4
.github/workflows/publish-to-pypi.yml
vendored
@@ -29,14 +29,14 @@ jobs:
|
|||||||
- name: Update version in setup.py
|
- name: Update version in setup.py
|
||||||
run: |
|
run: |
|
||||||
VERSION_TAG="${{ steps.get_version.outputs.VERSION }}"
|
VERSION_TAG="${{ steps.get_version.outputs.VERSION }}"
|
||||||
sed -i "s/\\(version *= *[\\"']\\)[^\\"']*\([\\"']\\)/\\1$VERSION_TAG\\2/" setup.py
|
sed -i "s/\\\\(version *= *[\\\\\\"']\\\\)[^\\\\\\"']*\([\\\\\\"']\\\\)/\\\\1$VERSION_TAG\\\\2/" setup.py
|
||||||
echo "Updated setup.py to version $VERSION_TAG for build:"
|
echo "Updated setup.py to version $VERSION_TAG for build:"
|
||||||
cat setup.py
|
cat setup.py
|
||||||
|
|
||||||
- name: Update version in librespot/__init__.py
|
- name: Update version in librespot/__init__.py
|
||||||
run: |
|
run: |
|
||||||
VERSION_TAG="${{ steps.get_version.outputs.VERSION }}"
|
VERSION_TAG="${{ steps.get_version.outputs.VERSION }}"
|
||||||
sed -i "s/\\(version_name *= *[\\"']\\)[^\\"']*\([\\"']\\)/\\1$VERSION_TAG\\2/" librespot/__init__.py
|
sed -i "s/\\\\(version_name *= *[\\\\\\"']\\\\)[^\\\\\\"']*\([\\\\\\"']\\\\)/\\\\1$VERSION_TAG\\\\2/" librespot/__init__.py
|
||||||
echo "Updated librespot/__init__.py to version $VERSION_TAG for build:"
|
echo "Updated librespot/__init__.py to version $VERSION_TAG for build:"
|
||||||
cat librespot/__init__.py
|
cat librespot/__init__.py
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user