Skip to content

Commit

Permalink
Removes PR trigger and re-enables PyPI upload now that test is passing
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumsden committed Jun 7, 2024
1 parent 1835290 commit 9b0e692
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/build_and_upload_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build wheels

on:
# Uncomment for testing through a PR
pull_request:
branches: [develop, releases/**]
# pull_request:
# branches: [develop, releases/**]
workflow_dispatch:
release:
types:
Expand Down Expand Up @@ -66,6 +66,10 @@ jobs:
pattern: hatchet_build_artifacts_*
merge-multiple: true
path: dist

- name: Check build artifacts
run: |
ls -lah dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand All @@ -80,7 +84,7 @@ jobs:
# - build_wheels_macos_38_plus
- build_sdist
runs-on: ubuntu-20.04
# if: (github.event_name == 'release' && github.event.action == 'published') || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'release' && github.event.action == 'published') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -92,9 +96,9 @@ jobs:
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/
- 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 9b0e692

Please sign in to comment.