Skip to content

WIP Migrate to pixi #2818

WIP Migrate to pixi

WIP Migrate to pixi #2818

Workflow file for this run

name: Conda build
on:
push:
branches: [main]
tags: ["*"]
pull_request:
workflow_dispatch:
# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: conda-${{ github.ref }}
cancel-in-progress: true
jobs:
conda:
name: Build (and upload)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- uses: prefix-dev/setup-pixi@v0
with:
pixi-version: v0.69.0
environments: build
cache: true
locked: true
- name: Build conda package
run: pixi r conda-build
- name: Upload conda build artifact
uses: actions/upload-artifact@v7
with:
name: conda-channel
path: dist/conda
if-no-files-found: error
- name: Upload conda packages
if: |
github.event_name == 'push'
&& github.ref == 'refs/heads/main'
&& github.repository == 'dask/distributed'
env:
ANACONDA_API_TOKEN: ${{ secrets.DASK_CONDA_TOKEN }}
run: pixi r conda-upload