Skip to content

Merge pull request #99 from moeyensj/concurrent-futures #1

Merge pull request #99 from moeyensj/concurrent-futures

Merge pull request #99 from moeyensj/concurrent-futures #1

Workflow file for this run

name: conda - Publish
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: continuumio/miniconda3
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
conda install -y anaconda-client conda-build
conda install -y setuptools setuptools_scm
- name: Update recipe with version variable
run: |
VERSION=$(python setup.py --version)
LINE_STR='{% set version = "'${VERSION}'" %}'
RECIPE_PATH='recipe/meta.yaml'
echo $LINE_STR | cat - $RECIPE_PATH > temp && mv temp $RECIPE_PATH
- name: Build and publish
env:
CONDA_USERNAME: ${{ secrets.CONDA_USERNAME }}
CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }}
run: |
conda config --set anaconda_upload yes
conda build -c defaults -c conda-forge -c astropy -c moeyensj --token $CONDA_TOKEN --user $CONDA_USERNAME .