ee3943b5b1
CI / test (deps-minimum, windows-latest, unit) (push) Blocked by required conditions
CI / test_py314 (deps-latest, ubuntu-latest, unit) (push) Blocked by required conditions
CI / test_py314 (deps-latest, windows-latest, unit) (push) Blocked by required conditions
CI / test_py314_future (deps-latest, ubuntu-latest, unit) (push) Blocked by required conditions
CI / test_py314_future (deps-latest, windows-latest, unit) (push) Blocked by required conditions
Secret Leaks / trufflehog (push) Waiting to run
CI / check_code_quality (push) Waiting to run
CI / test (deps-latest, ubuntu-latest, integration) (push) Blocked by required conditions
CI / test (deps-latest, ubuntu-latest, unit) (push) Blocked by required conditions
CI / test (deps-latest, windows-latest, integration) (push) Blocked by required conditions
CI / test (deps-latest, windows-latest, unit) (push) Blocked by required conditions
CI / test (deps-minimum, ubuntu-latest, integration) (push) Blocked by required conditions
CI / test (deps-minimum, ubuntu-latest, unit) (push) Blocked by required conditions
CI / test (deps-minimum, windows-latest, integration) (push) Blocked by required conditions
Build documentation / build (push) Failing after 0s
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Release - Conda
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "[0-9]+.[0-9]+.[0-9]+*"
|
|
|
|
env:
|
|
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
|
|
|
|
jobs:
|
|
build_and_package:
|
|
runs-on: ubuntu-22.04
|
|
defaults:
|
|
run:
|
|
shell: bash -l {0}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install miniconda
|
|
uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
|
|
with:
|
|
auto-update-conda: true
|
|
auto-activate-base: false
|
|
python-version: "3.10"
|
|
channels: huggingface
|
|
|
|
- name: Setup conda env
|
|
run: |
|
|
# Install conda-build into base so the command is available
|
|
conda install -y -c defaults -c conda-forge anaconda-client conda-build
|
|
# Create the build environment
|
|
conda create -y -n build-datasets python=3.10
|
|
conda activate build-datasets
|
|
|
|
- name: Extract version
|
|
run: echo "DATASETS_VERSION=`python setup.py --version`" >> $GITHUB_ENV
|
|
|
|
- name: Build conda packages
|
|
run: |
|
|
conda-build --override-channels -c conda-forge -c huggingface .github/conda
|
|
|
|
- name: Upload to Anaconda
|
|
run: |
|
|
anaconda upload `conda-build .github/conda --output -c conda-forge` --force
|