Publish to Test PyPI #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |