]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - .github/workflows/release.yml
Added pre-commit support
[Adafruit_Blinka-hackapet.git] / .github / workflows / release.yml
index 220e398e34de24d56a97bf359af1acb40c0c53dd..9aa3d4ccbd0af967bea637ee17c292a6c47379f3 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: |
+        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;
+        done;
         python setup.py sdist
         twine upload dist/*