Skip to content

Add the write permission for id-token to make OIDC work with pypi #4

Add the write permission for id-token to make OIDC work with pypi

Add the write permission for id-token to make OIDC work with pypi #4

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install poetry
- name: Build and publish
run: |
poetry build
poetry publish