use VERSION file and set dev version

This commit is contained in:
Wing Lian
2026-01-20 10:22:17 -05:00
parent 6e42def14b
commit 3f9555822e
5 changed files with 8 additions and 11 deletions

View File

@@ -48,9 +48,9 @@ jobs:
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in setup.py
- name: Update version in src/axolotl/__init__.py
run: |
sed -i -E 's/version="([0-9.]+)",/version="${{ steps.tag.outputs.TAG_NAME }}",/g' setup.py
sed -i -E's/__version__ = "([0-9.]+)"/__version__ = "${{ steps.tag.outputs.TAG_NAME }}"/g' src/axolotl/__init__.py
- name: Build a source dist
run: |