Skip to content

Commit 90a813f

Browse files
authored
replace upload (#5765)
1 parent 65247ec commit 90a813f

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/release-pypi.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,23 @@ jobs:
3232
name: pypi-packages-${{ github.sha }}
3333
path: dist
3434

35+
upload-package:
36+
runs-on: ubuntu-20.04
37+
needs: build-package
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: actions/download-artifact@v2
41+
with:
42+
name: pypi-packages-${{ github.sha }}
43+
path: dist
44+
- run: ls -lh dist/
45+
3546
- name: Upload to release
3647
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
37-
uses: svenstaro/upload-release-action@v2
48+
uses: AButler/upload-release-assets@v2.0
3849
with:
39-
repo_token: ${{ secrets.GITHUB_TOKEN }}
40-
file: dist/*
41-
tag: ${{ github.ref }}
42-
asset_name: packages
43-
overwrite: false
44-
file_glob: true
50+
files: 'dist/*'
51+
repo-token: ${{ secrets.GITHUB_TOKEN }}
4552

4653
publish-package:
4754
runs-on: ubuntu-20.04
@@ -52,9 +59,7 @@ jobs:
5259
with:
5360
name: pypi-packages-${{ github.sha }}
5461
path: dist
55-
- name: Show packages
56-
run: |
57-
ls -lh dist/
62+
- run: ls -lh dist/
5863

5964
- name: Delay releasing
6065
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'

0 commit comments

Comments
 (0)