Conda Build and Upload #9
Workflow file for this run
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: Conda Build and Upload | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Conda | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: 3.8 | |
- name: Build and upload conda package | |
shell: bash -l {0} | |
env: | |
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
run: | | |
conda install --yes --quiet conda-build conda-verify anaconda-client | |
conda build conda.recipe/ --channel=nrel | |
anaconda -t $ANACONDA_TOKEN upload -u nrel $(conda build conda.recipe/ --channel=nrel --output) |