release #2140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
schedule: | |
- cron: '00 01,13 * * *' | |
workflow_dispatch: | |
env: | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }} | |
TWINE_USERNAME: __token__ | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
jobs: | |
release: | |
defaults: | |
run: | |
shell: bash -l {0} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check required secrets | |
run: | | |
[[ -n "$TWINE_PASSWORD" ]] || { echo "Error: PYPI_PASS secret not set"; exit 1; } | |
[[ -n "$ANACONDA_API_TOKEN" ]] || { echo "Error: ANACONDA_TOKEN secret not set"; exit 1; } | |
- uses: actions/checkout@v4 | |
- name: setup conda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: "3.10" | |
miniforge-version: latest | |
- name: install dependencies | |
run: | | |
conda install -qy anaconda-client conda-build wheel setuptools boa mamba | |
pip install -Uqq twine sphinx fastcore pip wheel fastrelease nbdev | |
- name: parse data & release if appropriate | |
run: bash all_actions.sh all |