Skip to content

Commit

Permalink
Safely check runs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Feb 23, 2024
1 parent ffac1e0 commit fd427ef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy to PyPI

on:
push:
workflow_dispatch:
release:
types:
Expand All @@ -25,14 +26,17 @@ 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
with:
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 }}
14 changes: 9 additions & 5 deletions .github/workflows/upload-nightly-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Upload nightly wheels to Anaconda Cloud

on:
push:
# Run daily at 1:23 UTC
schedule:
- cron: '23 1 * * *'
Expand All @@ -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 }}

0 comments on commit fd427ef

Please sign in to comment.