Skip to content

Publish to Test PyPI #6

Publish to Test PyPI

Publish to Test PyPI #6

name: Publish to Test PyPI
on:
workflow_dispatch:
jobs:
publish:
name: Publish ${{ github.ref_name }} to Test PyPI
runs-on: ubuntu-latest
steps:
- name: Setup miniforge
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
auto-activate-base: true
activate-environment: ""
- name: Build stack via conda-forge
shell: bash -l {0}
run: |
conda create -y -n dedalus
conda activate dedalus
conda install -y -c conda-forge dedalus c-compiler cython "h5py=*=mpi*"
conda uninstall -y --force dedalus
- name: Checkout repository
uses: actions/checkout@v2
- name: Build sdist
shell: bash -l {0}
run: |
conda activate dedalus
pip install build
python -m build --sdist
- name: Publish sdist to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/