-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade upload-artifact action to v4
- Loading branch information
1 parent
fd87033
commit c545784
Showing
2 changed files
with
10 additions
and
11 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 |
---|---|---|
|
@@ -61,7 +61,7 @@ jobs: | |
- name: Set Version for PR | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: echo "VERSION=PR_${{ github.event.pull_request.number }}" >> $GITHUB_ENV | ||
|
||
- name: Set Version for manual triggering | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
run: echo "VERSION=${{ github.event.inputs.version_name }}" >> $GITHUB_ENV | ||
|
@@ -72,12 +72,12 @@ jobs: | |
- name: Build the wheel | ||
run: python setup.py sdist bdist_wheel | ||
|
||
- name: Save produced wheel name and path | ||
run: echo "WHEEL_FILE=$(ls dist/*-py3-none-any.whl)" >> $GITHUB_ENV | ||
|
||
- name: Store artifacts | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ${{ env.WHEEL_FILE }} | ||
|
||
|
@@ -99,7 +99,7 @@ jobs: | |
user: __token__ | ||
password: ${{ secrets.PYPI_TEST_PWD }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
- name: Publish package to PyPI for release | ||
if: ${{ github.event_name == 'release' }} | ||
uses: pypa/[email protected] | ||
|
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