Skip to content

Commit e1c152b

Browse files
authored
fix PyPI releasing (#5605)
1 parent 27e2b7f commit e1c152b

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/release-pypi.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,9 @@ jobs:
2929
3030
- uses: actions/upload-artifact@v2
3131
with:
32-
name: pypi-packages
32+
name: pypi-packages-${{ github.sha }}
3333
path: dist
3434

35-
publish-package:
36-
runs-on: ubuntu-20.04
37-
needs: build-package
38-
steps:
39-
- uses: actions/checkout@v2
4035
- name: Upload to release
4136
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
4237
uses: svenstaro/upload-release-action@v2
@@ -48,6 +43,19 @@ jobs:
4843
overwrite: false
4944
file_glob: true
5045

46+
publish-package:
47+
runs-on: ubuntu-20.04
48+
needs: build-package
49+
steps:
50+
- uses: actions/checkout@v2
51+
- uses: actions/download-artifact@v2
52+
with:
53+
name: pypi-packages-${{ github.sha }}
54+
path: dist
55+
- name: Show packages
56+
run: |
57+
ls -lh dist/
58+
5159
- name: Delay releasing
5260
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
5361
uses: juliangruber/sleep-action@v1
@@ -102,7 +110,7 @@ jobs:
102110

103111
- uses: actions/download-artifact@v2
104112
with:
105-
name: pypi-packages
113+
name: pypi-packages-${{ github.sha }}
106114
path: dist
107115

108116
- name: Pull files from S3

0 commit comments

Comments
 (0)