Skip to content

add write permissions to contents #7

add write permissions to contents

add write permissions to contents #7

Workflow file for this run

name: Build distribution

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

(Line: 10, Col: 13): Unexpected value 'read'
on:
release:
types: [created]
permissions:
contents: write
pull-requests: read
id-token: read
jobs:
test:
uses: ./.github/workflows/test.yml
lint:
uses: ./.github/workflows/lint.yml
deploy:
needs: [test, lint]
name: Deploy to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
- run: uv build
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./dist