From dde5a7231986285e7032b29c98a6b99245f46780 2023-05-22 18:30:11 From: Matthias Bussonnier Date: 2023-05-22 18:30:11 Subject: [PATCH] Update nightly-wheel-build.yml --- diff --git a/.github/workflows/nightly-wheel-build.yml b/.github/workflows/nightly-wheel-build.yml index 41fbdc5..93b0a81 100644 --- a/.github/workflows/nightly-wheel-build.yml +++ b/.github/workflows/nightly-wheel-build.yml @@ -1,29 +1,30 @@ +name: Nightly Wheel builder on: workflow_dispatch: -name: Nightly Wheel builder -upload_anaconda: - name: Upload to Anaconda - runs-on: ubuntu-latest - # The artifacts cannot be uploaded on PRs - if: github.event_name != 'pull_request' +jobs: + upload_anaconda: + name: Upload to Anaconda + runs-on: ubuntu-latest + # The artifacts cannot be uploaded on PRs + if: github.event_name != 'pull_request' - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.10" - cache: pip - cache-dependency-path: | - setup.cfg - - name: Try building with Python build - if: runner.os != 'Windows' # setup.py does not support sdist on Windows - run: | - python -m build + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: pip + cache-dependency-path: | + setup.cfg + - name: Try building with Python build + if: runner.os != 'Windows' # setup.py does not support sdist on Windows + run: | + python -m build - - name: Upload wheel - uses: scientific-python/upload-nightly-wheel - with: - artifact-names: dist/*.whl - anaconda-nightly-upload-token: ${secrets.UPLOAD_TOKEN} + - name: Upload wheel + uses: scientific-python/upload-nightly-wheel@latest + with: + artifact-names: dist/*.whl + anaconda-nightly-upload-token: ${secrets.UPLOAD_TOKEN}