-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
44 additions
and
106 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
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
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 |
---|---|---|
|
@@ -38,20 +38,14 @@ jobs: | |
|
||
- run: echo "Running on ${{ matrix.directory }}" | ||
|
||
- name: "Check package build - ${{ matrix.directory }} 📦" | ||
- name: "Build and check package - ${{ matrix.directory }} 📦" | ||
uses: hynek/build-and-inspect-python-package@v2 | ||
id: baipp | ||
with: | ||
path: ${{ matrix.directory }} | ||
upload-name-suffix: "-${{ matrix.directory }}" | ||
|
||
# Adding a separate upload for publishing | ||
- name: "Upload build artefacts 📤" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.directory }}-package | ||
path: | | ||
/tmp/baipp/dist/*.whl | ||
/tmp/baipp/dist/*.tar.gz | ||
- run: echo Packages can be found at ${{ steps.baipp.outputs.dist }} and in artifact ${{ steps.baipp.outputs.artifact-name }} | ||
|
||
# Upload to Test PyPI on every commit on main | ||
release-test-pypi: | ||
|
@@ -72,9 +66,11 @@ jobs: | |
- name: "Download build artefacts 📥" | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ matrix.directory }}-package | ||
name: Packages-${{ matrix.directory }} | ||
path: dist | ||
|
||
- run: tar xf dist/*.tar.gz --strip-components=1 | ||
|
||
- name: "Upload package to Test PyPI" | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
|
@@ -104,9 +100,11 @@ jobs: | |
- name: "Download build artefacts 📥" | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ matrix.directory }}-package | ||
name: Packages-${{ matrix.directory }} | ||
path: dist | ||
|
||
- run: tar xf dist/*.tar.gz --strip-components=1 | ||
|
||
- name: "Upload to PyPI 🚀" | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
|
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
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
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