]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Update release.yml
authorAlec Delaney <89490472+tekktrik@users.noreply.github.com>
Sat, 17 Sep 2022 03:01:51 +0000 (23:01 -0400)
committerAlec Delaney <89490472+tekktrik@users.noreply.github.com>
Sat, 17 Sep 2022 03:01:51 +0000 (23:01 -0400)
.github/workflows/release.yml

index 9aa3d4ccbd0af967bea637ee17c292a6c47379f3..9275e00ed0153069fe18941de88d0a010db7b09e 100644 (file)
@@ -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/*