Skip to content

Update __version__.py #7

Update __version__.py

Update __version__.py #7

name: Build and Upload Python Package
on:

Check failure on line 3 in .github/workflows/build-and-deploy-release-pypi.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-deploy-release-pypi.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
release:
types: [published]
permissions:
contents: read
id-token: write
jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install build tools
run: |
python -m pip install --upgrade pip setuptools wheel build twine
- name: Build distribution
run: |
python -m build --sdist
python -m build --wheel
- name: Check distribution
run: twine check dist/*
- name: Upload to TestPyPI
env:
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN}}
run: |
twine upload --repository testpypi dist/*
- name: Upload to PyPi
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN}}
run: |
twine upload dist/*