I2MC Fixation-classification algorithm #18
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 Python π distributions π¦ to PyPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-n-publish: | |
name: Build and publish Python π distributions π¦ to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- name: get latest release with tag | |
id: latestrelease | |
run: | | |
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/dcnieho/I2MC_Python/releases/latest | jq '.tag_name' | sed 's/\"//g')" | |
- name: confirm release tag | |
run: | | |
echo ${{ steps.latestrelease.outputs.releasetag }} | |
- name: tagcheckout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ steps.latestrelease.outputs.releasetag }} | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
- name: Publish distribution π¦ to PyPI | |
uses: pypa/gh-action-pypi-publish@v1.8.7 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |