]> Repositories - hackapet/Adafruit_Blinka.git/blobdiff - .github/workflows/release.yml
Update release.yml
[hackapet/Adafruit_Blinka.git] / .github / workflows / release.yml
index 220e398e34de24d56a97bf359af1acb40c0c53dd..9275e00ed0153069fe18941de88d0a010db7b09e 100644 (file)
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
+#
+# SPDX-License-Identifier: Unlicense
 name: Release Actions
 
 on:
@@ -29,5 +32,8 @@ jobs:
         TWINE_USERNAME: ${{ secrets.pypi_username }}
         TWINE_PASSWORD: ${{ secrets.pypi_password }}
       run: |
-        python setup.py sdist
+        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 -m build
         twine upload dist/*