Skip to content

Commit 3d1539f

Browse files
committed
Update publish workflow to use new version file
1 parent 175e3d3 commit 3d1539f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
pip install build
2525
- name: Get version
2626
run: |
27-
cat setup.cfg | grep "version = " | awk '{print "VERSION="$(NF)}' >> $GITHUB_ENV
27+
cat src/polygongrid/_version.py | awk '{print $(NF)}' >> $GITHUB_ENV
2828
- name: Build a binary wheel and a source tarball 🚧
2929
run: python -m build --sdist --wheel --outdir dist/ .
3030
- name: Validate release tag

src/polygongrid/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.1.0a1"

0 commit comments

Comments
 (0)