From: Alec Delaney <89490472+tekktrik@users.noreply.github.com> Date: Sat, 17 Sep 2022 03:01:51 +0000 (-0400) Subject: Update release.yml X-Git-Tag: 8.4.1^2~3 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/cdb8c685e1bc77f02ccd465b237734203d6340f1 Update release.yml --- diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9aa3d4c..9275e00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,8 +32,8 @@ jobs: TWINE_USERNAME: ${{ secrets.pypi_username }} TWINE_PASSWORD: ${{ secrets.pypi_password }} run: | - for file in $(find -not -path "./.*" -not -path "./docs*" -name "*.py"); do - sed -i -e "s/0.0.0-auto.0/${{github.event.release.tag_name}}/" $file; + for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do + sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file; done; - python setup.py sdist + python -m build twine upload dist/*