Skip to content

Commit ac44d99

Browse files
author
Alec Delaney
committed
Use CI to set version
1 parent 76820e0 commit ac44d99

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ jobs:
2929
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3030
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3131
run: |
32+
for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
33+
sed -i -e "s/0.0.0/${{github.event.release.tag_name}}/" $file;
34+
done;
3235
python -m build
3336
twine upload dist/*

Adafruit_IO/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.5.0"
1+
__version__ = "0.0.0"

0 commit comments

Comments
 (0)