Skip to content

2.0.1

2.0.1 #10

Workflow file for this run

name: Release
on:
release:
types: [created]
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: |
conda install -y anaconda-client conda-build conda-verify
conda config --set channel_priority strict
conda config --set anaconda_upload yes
- name: build
run: |
cd conda
conda build --user colomoto --token $ANACONDA_TOKEN -c conda-forge .
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}