Singularity Registry HPC v0.1.27 #36
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: Release Python Package | |
on: | |
release: | |
types: [created] | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install | |
run: conda create --quiet --name shpc twine | |
- name: Install dependencies | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate shpc | |
pip install -e . | |
pip install setuptools wheel twine | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USER }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }} | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate shpc | |
python setup.py sdist bdist_wheel | |
twine upload dist/* |