Skip to content

Commit

Permalink
Adds test for upload-artifact@v4 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumsden authored Jun 7, 2024
1 parent a91e194 commit bde619e
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/build_and_upload_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: hatchet_build_artifacts_wheels_linux_3
path: ./wheelhouse/*.whl

# TODO: uncomment if/when we decide to build wheels for macOS
Expand Down Expand Up @@ -81,6 +82,7 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: hatchet_build_artifacts_sdist
path: dist/*.tar.gz

test_upload_to_pypi:
Expand All @@ -94,7 +96,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
pattern: hatchet_build_artifacts_*
merge-multiple: true
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -114,12 +117,17 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
pattern: hatchet_build_artifacts_*
merge-multiple: true
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
# Uncomment the line below if you want to upload to PyPI
# repository_url: https://test.pypi.org/legacy/

- name: Check build artifacts
run: |
ls -lah dist
# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# # Uncomment the line below if you want to upload to PyPI
# # repository_url: https://test.pypi.org/legacy/

0 comments on commit bde619e

Please sign in to comment.