Skip to content

Commit

Permalink
Copy to release/
Browse files Browse the repository at this point in the history
pypa/gh-action-pypi-publish is too greedy and thinks docs.tar.gz is
another python package. Unfortunately svenstaro/upload-release-action
doesn't support multiple paths besides globbing.

Keeping `dist/` only for PyPI and staging release files in `release/` to
mitigate this problem.
  • Loading branch information
Robpol86 committed Jul 6, 2024
1 parent 74c3299 commit 7db00a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ jobs:
uses: actions/download-artifact@v4
with:
name: docs
path: dist
path: release
- name: Copy
run: cp -v dist/* release/
- name: Upload to Release
uses: svenstaro/upload-release-action@v2
with:
file: dist/*
file: release/*
file_glob: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
Expand Down

0 comments on commit 7db00a6

Please sign in to comment.