diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 80594180abd09..7271a1d9b860b 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -29,14 +29,9 @@ jobs: - uses: actions/upload-artifact@v2 with: - name: pypi-packages + name: pypi-packages-${{ github.sha }} path: dist - publish-package: - runs-on: ubuntu-20.04 - needs: build-package - steps: - - uses: actions/checkout@v2 - name: Upload to release if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' uses: svenstaro/upload-release-action@v2 @@ -48,6 +43,19 @@ jobs: overwrite: false file_glob: true + publish-package: + runs-on: ubuntu-20.04 + needs: build-package + steps: + - uses: actions/checkout@v2 + - uses: actions/download-artifact@v2 + with: + name: pypi-packages-${{ github.sha }} + path: dist + - name: Show packages + run: | + ls -lh dist/ + - name: Delay releasing if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' uses: juliangruber/sleep-action@v1 @@ -102,7 +110,7 @@ jobs: - uses: actions/download-artifact@v2 with: - name: pypi-packages + name: pypi-packages-${{ github.sha }} path: dist - name: Pull files from S3