update pypi publish to update VERSION file
This commit is contained in:
4
.github/workflows/pypi.yml
vendored
4
.github/workflows/pypi.yml
vendored
@@ -48,9 +48,9 @@ jobs:
|
|||||||
id: tag
|
id: tag
|
||||||
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
|
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
|
||||||
|
|
||||||
- name: Update version in src/axolotl/__init__.py
|
- name: Update version in VERSION file
|
||||||
run: |
|
run: |
|
||||||
sed -i -E's/__version__ = "([0-9.]+)"/__version__ = "${{ steps.tag.outputs.TAG_NAME }}"/g' src/axolotl/__init__.py
|
echo "${{ steps.tag.outputs.TAG_NAME }}" | sed -e's/v//g' > VERSION
|
||||||
|
|
||||||
- name: Build a source dist
|
- name: Build a source dist
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user