Skip to content

2023.10.post2

2023.10.post2 #3

Workflow file for this run

name: Upload package to PyPI
on:
release:
types: [created]
jobs:
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip build twine
- name: Build
run: |
python -m build --sdist --wheel .
- name: Check the built archives
run: |
twine check dist/*
pip install dist/*.whl
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
permissions:

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

View workflow run for this annotation

GitHub Actions / Upload package to PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 29, Col: 9): Unexpected value 'permissions'
id-token: write
with:
password: ${{ secrets.pypi_token }}
repository_url: https://upload.pypi.org/legacy/
verify_metadata: true