Skip to content

Merge pull request #372 from ml-struct-bio/v3.3.1 #200

Merge pull request #372 from ml-struct-bio/v3.3.1

Merge pull request #372 from ml-struct-bio/v3.3.1 #200

Workflow file for this run

name: Release
on:
push:
branches: [ main ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Upgrade setuptools/build
run: |
pip3 install wheel --upgrade
pip3 install setuptools --upgrade
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Check Tag
id: check-tag
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "match=true" >> $GITHUB_OUTPUT
fi
- name: Release to pypi
if: steps.check-tag.outputs.match == 'true'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_MAIN_TOKEN }}
run: |
python -m pip install --upgrade build
python -m build .
python -m pip install --upgrade twine
twine upload dist/*