Skip to content

Commit 0ef48be

Browse files
chore: upload release artifacts as assets
1 parent 0eecd08 commit 0ef48be

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/python-tests.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,23 @@ jobs:
121121
- name: Publish package to PyPI
122122
uses: pypa/gh-action-pypi-publish@release/v1
123123

124+
upload-release-assets:
125+
runs-on: ubuntu-latest
126+
if: github.event_name == 'release' && github.event.action == 'published'
127+
needs: [test]
128+
permissions:
129+
contents: write
130+
steps:
131+
- uses: actions/download-artifact@v4
132+
with:
133+
name: Packages
134+
path: dist
135+
- name: Upload release assets
136+
uses: softprops/action-gh-release@v2
137+
with:
138+
files: dist/*
139+
fail_on_unmatched_files: true
140+
124141
test-pypi-upload:
125142
runs-on: ubuntu-latest
126143
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)