diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 3aa7e4e..82a712f 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -56,7 +56,7 @@ jobs: run: python -m twine check --strict wheelhouse/* # Upload artifacts because gh-action-pypi-publish Docker is only on Linux - name: Upload wheels - if: (github.event_name == 'release' || github.event_name == 'schedule') + if: (github.event_name == 'release' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') uses: actions/upload-artifact@v4 with: name: additional-pylons-${{ matrix.os }} @@ -121,7 +121,7 @@ jobs: anaconda: name: Publish nightly wheel to Anaconda needs: [build_wheels] - if: github.repository == 'spacetelescope/synphot_refactor' && github.event_name == 'schedule' + if: github.repository == 'spacetelescope/synphot_refactor' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') runs-on: ubuntu-latest steps: - uses: OpenAstronomy/publish-wheels-anaconda@612ea808f79152bd52a019316f684a12bbe8ba33 # main 2024-09-06