Skip to content

v0.10.10

v0.10.10 #13

Workflow file for this run

name: Conda
on:
release:
types: ['released', 'prereleased']
# workflow_dispatch: # Un comment line if you also want to trigger action manually
jobs:
conda_deployment_with_new_tag:
name: Conda deployment of package for platform ${{ matrix.os }} with Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Conda environment creation and activation
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: recipe/build-env.yml # Path to the build conda environment
activate-environment: build-environment
auto-update-conda: true
auto-activate-base: false
show-channel-urls: true
- name: Build and upload the conda packages
uses: uibcdf/[email protected]
with:
meta_yaml_dir: recipe
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
user: phygbu
label: auto
overwrite: true
token: ${{ secrets.ANACONDA }} # Replace with the right name of your secret
- name: Upload wheel
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m pip install twine
python setup.py sdist bdist_wheel
twine upload dist/*