Skip to content

Version 0.6.5

Version 0.6.5 #27

Workflow file for this run

name: Publish Python distributions to PyPI
on:
release:
types: [published]
jobs:
build-n-publish:
strategy:
matrix:
include:
- os: ubuntu-latest
label: linux-64
prefix: /usr/share/miniconda3/envs/my-env
#- os: macos-latest
# label: osx-64
# prefix: /Users/runner/miniconda3/envs/my-env
#- os: windows-latest
# label: win-64
# prefix: C:\Miniconda3\envs\my-env
name: ${{ matrix.label }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
environment-name: my-env
create-args: >-
python=3.10
cache-environment: true
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
env:
KALDI_ROOT: ~/micromamba/envs/my-env
shell: bash -l {0}
run: >-
python -m
build
--sdist
--outdir dist/
.
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}