dont wait for pypi in release flow
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 4 Sep 2024 10:19:25 +0000 (12:19 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 10:19:25 +0000 (12:19 +0200)
.github/workflows/release.yml

index 9bec3e83f9c86008d2f7563b584e4cf6a7df4169..dd605d0cf863918df5119c639744f79d0131cd27 100644 (file)
@@ -66,7 +66,6 @@ jobs:
   pypi-publish:
     name: Publish release to PyPI (stable releases only)
     runs-on: ubuntu-latest
-    if: ${{ !github.event.release.prerelease }}
     needs: build-artifact
     steps:
       - name: Retrieve release distributions
@@ -75,12 +74,11 @@ jobs:
           name: release-dists
           path: dist/
       - name: Publish release to PyPI
+        if: ${{ github.event.release.prerelease == false }}
         uses: pypa/gh-action-pypi-publish@v1.10.1
         with:
           user: __token__
           password: ${{ secrets.PYPI_TOKEN }}
-      - name: Wait for PyPI
-        run: sleep 300
 
   build-and-push-container-image:
     name: Builds and pushes the Music Assistant Server container to ghcr.io
@@ -156,12 +154,10 @@ jobs:
   addon-version-update:
     name: Updates the Addon repository with the new version
     needs:
-      [
-        build-artifact,
-        pypi-publish,
-        build-and-push-container-image,
-        release-notes-update,
-      ]
+      - build-artifact
+      - pypi-publish
+      - build-and-push-container-image
+      - release-notes-update
     runs-on: ubuntu-latest
     steps:
       - name: Push new version number to addon config