fix PyPI releasing (#5605)

This commit is contained in:
Jirka Borovec 2021-01-21 17:12:29 +01:00 committed by Jirka Borovec
parent e8206a9295
commit 74d175bfac
1 changed files with 15 additions and 7 deletions

View File

@ -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