Bumps the actions group with 3 updates: [actions/setup-python](https://github.com/actions/setup-python), [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) and [actions/labeler](https://github.com/actions/labeler). Updates `actions/setup-python` from 6 to 7 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6...v7) Updates `astral-sh/setup-uv` from 8.2.0 to 9.0.0 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/v8.2.0...v9.0.0) Updates `actions/labeler` from 6 to 7 - [Release notes](https://github.com/actions/labeler/releases) - [Commits](https://github.com/actions/labeler/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: astral-sh/setup-uv dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/labeler dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: Upload nightly wheels to Anaconda Cloud
|
|
|
|
on:
|
|
# Run daily at 2:34 UTC to upload nightly wheels to Anaconda Cloud
|
|
schedule:
|
|
- cron: "34 2 * * *"
|
|
# Run on demand with workflow dispatch
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
actions: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build_wheel:
|
|
name: Build and upload wheel
|
|
if: github.repository_owner == 'pybind'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v9.0.0
|
|
|
|
- name: Build SDist and wheels
|
|
run: |
|
|
uv tool install nox
|
|
nox -s build
|
|
nox -s build_global
|
|
|
|
- uses: actions/upload-artifact@v7
|
|
with:
|
|
name: Packages
|
|
path: dist/*
|
|
|
|
upload_nightly_wheels:
|
|
name: Upload nightly wheels to Anaconda Cloud
|
|
if: github.repository_owner == 'pybind'
|
|
needs: [build_wheel]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/download-artifact@v8
|
|
with:
|
|
name: Packages
|
|
path: dist
|
|
|
|
- name: List wheel to be deployed
|
|
run: ls -lha dist/*.whl
|
|
|
|
- name: Upload wheel to Anaconda Cloud as nightly
|
|
uses: scientific-python/upload-nightly-action@e76cfec8a4611fd02808a801b0ff5a7d7c1b2d99 # 0.6.4
|
|
with:
|
|
artifacts_path: dist
|
|
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
|