fix PyPI releasing (#5605)
This commit is contained in:
parent
e8206a9295
commit
74d175bfac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue