Skip to content

Commit

Permalink
fix PyPI releasing (#5605)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Jan 21, 2021
1 parent 27e2b7f commit e1c152b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e1c152b

Please sign in to comment.