Skip to content

Inital Commit

Inital Commit #2

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 20, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.PYPI_API_TOKEN != ''
name: Release
on:
push:
tags: [ "v*" ]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: { python-version: "3.11" }
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build
run: python -m build
- name: Publish to PyPI
if: secrets.PYPI_API_TOKEN != ''
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*