Skip to content

Move permissions to jobs level #115

Move permissions to jobs level

Move permissions to jobs level #115

Workflow file for this run

name: Publish Python distributions to PyPI

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: permissions
on:
push:
tags:
- v*
jobs:
permissions:
id-token: write
build-n-publish:
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: 1.4.2
- name: Build with poetry
run: poetry build
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1