Version v2.5.0 #6
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: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
pypi-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: sed -i "s:9999:${VERSION//*v/}:" setup.py conda/meta.yaml | |
env: | |
VERSION: ${{ github.ref }} | |
- uses: actions/setup-python@v1 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
python setup.py sdist bdist_wheel | |
twine upload dist/* | |
conda-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: sed -i "s:9999:${VERSION//*v/}:" setup.py conda/meta.yaml | |
env: | |
VERSION: ${{ github.ref }} | |
- uses: s-weigand/setup-conda@v1 | |
- name: prepare | |
run: | | |
python setup.py sdist bdist_wheel | |
conda install -y anaconda-client conda-build conda-verify conda-libmamba-solver | |
conda config --set solver libmamba | |
conda config --set channel_priority flexible | |
conda config --set anaconda_upload yes | |
- name: build | |
run: | | |
cd conda | |
conda build --user creda --token $ANACONDA_TOKEN --override-channels -c conda-forge -c colomoto -c bioconda . | |
env: | |
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} |