Skip to content

Publish Conda

Publish Conda #3

Workflow file for this run

name: Publish Conda
on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: "${{ github.event.inputs.version }}"
jobs:
release:
name: Publish Conda
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GIT_TOKEN }}
# Use older python version when running publish_conda_package_action until https://github.com/amauryval/publish_conda_package_action/issues/4 is resolved.
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Create and activate conda venv
run: |
python -m pip install --upgrade pip
pip install conda
conda create -n conda-env python=3.8
conda activate conda-env
- name: Publish to Conda
uses: amauryval/publish_conda_package_action@2.0.3
with:
CondaDir: 'py/h2o_wave/conda'
Platforms: 'noarch'
CondaUsername: ${{ secrets.CONDA_USERNAME }}
CondaPassword: ${{ secrets.CONDA_PASSWORD }}
env:
# VERSION clashes with conda build. Use PKG_VERSION instead.
PKG_VERSION: ${{ env.VERSION }}