Skip to content

Workflow file for this run

name: Publish to PyPI
on:
push: # temp until it works
branches:
- main
release:
types:
- published
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U build
- name: Build and publish
uses: pypa/gh-action-pypi-publish@release/v1
permissions:

Check failure on line 32 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish to PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 32, Col: 7): Unexpected value 'permissions'
id-token: write
with:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}