Skip to content

Use Trusted Publisher #3

Use Trusted Publisher

Use Trusted Publisher #3

Workflow file for this run

name: Publish to PYPI
on:
push:
branches:
- main
jobs:
regular:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-tags: true
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Compile package
run: |
poetry build
- name: Upload package
uses: pypa/gh-action-pypi-publish@release/v1