From fd427ef13aae96ec0c292cd48d885ff6ef003a0b Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 23 Feb 2024 02:50:17 -0600 Subject: [PATCH] Safely check runs --- .github/workflows/deploy.yml | 12 ++++++++---- .github/workflows/upload-nightly-wheels.yml | 14 +++++++++----- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ecfd64c6f..7c998e08e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,7 @@ name: Deploy to PyPI on: + push: workflow_dispatch: release: types: @@ -25,7 +26,7 @@ jobs: publish: needs: [dist] runs-on: ubuntu-latest - if: github.event_name == 'release' && github.event.action == 'published' + # if: github.event_name == 'release' && github.event.action == 'published' steps: - uses: actions/download-artifact@v4 @@ -33,6 +34,9 @@ jobs: name: artifact path: dist - - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.pypi_password }} + - name: list dist + run: ls -lha dist/ + + # - uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # password: ${{ secrets.pypi_password }} diff --git a/.github/workflows/upload-nightly-wheels.yml b/.github/workflows/upload-nightly-wheels.yml index 8e2a47c7c..807dcabe0 100644 --- a/.github/workflows/upload-nightly-wheels.yml +++ b/.github/workflows/upload-nightly-wheels.yml @@ -1,6 +1,7 @@ name: Upload nightly wheels to Anaconda Cloud on: + push: # Run daily at 1:23 UTC schedule: - cron: '23 1 * * *' @@ -25,8 +26,11 @@ jobs: - name: Build wheel uses: ./.github/workflows/build-distributions.yml - - name: Upload wheel to Anaconda Cloud as nightly - uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0 - with: - artifacts_path: dist - anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} + - name: list dist + run: ls -lha dist/ + + # - name: Upload wheel to Anaconda Cloud as nightly + # uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0 + # with: + # artifacts_path: dist + # anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}