Skip to content

Release to PyPI

Release to PyPI #16

Workflow file for this run

name: Release to PyPI

Check failure on line 1 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release to PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml: (Line: 12, Col: 9, Idx: 144) - (Line: 12, Col: 10, Idx: 145): While parsing a tag, did not find expected tag URI.

Check failure on line 1 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release to PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml: (Line: 12, Col: 9, Idx: 144) - (Line: 12, Col: 10, Idx: 145): While parsing a tag, did not find expected tag URI.
on:
release:
types: [published]
jobs:
build:
name: Build dist & publish
runs-on: ubuntu-latest
if: ! ${{ contains(github.ref, 'dev') || contains(github.ref, 'rc') }}
steps:
- name: Checkout the repo and the submodules.
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install build dependencies & build
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.3.1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}