-
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #628 from pydsigner/fix_python_workflow
Unpack inner artifact directories in Python release Workflow
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,12 +227,16 @@ jobs: | |
#needs: [linux, windows, macos, sdist] | ||
needs: [linux, windows, sdist] | ||
steps: | ||
- name: Collect artifacts | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
path: bindings/py/dist | ||
- name: Omit non-release files | ||
run: rm -f bindings/py/dist/*.so | ||
path: bindings/py/artifacts | ||
- name: Bundle release artifacts | ||
run: | | ||
cd bindings/py/ | ||
rm -r artifacts/*.so | ||
mkdir dist | ||
mv artifacts/*/* dist/ | ||
- name: Upload to GitHub Release | ||
uses: softprops/[email protected] | ||
with: | ||
|
@@ -242,3 +246,4 @@ jobs: | |
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
packages-dir: bindings/py/dist/ |