pyvariot/.github/workflows/release.yml

27 lines
650 B
YAML
Raw Permalink Normal View History

2024-06-07 09:07:52 +00:00
on:
release:
types:
- published
name: release
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
2024-06-10 14:39:18 +00:00
url: https://pypi.org/p/pyvariot
2024-06-07 09:07:52 +00:00
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Poetry
run: python -m pip install --upgrade pip poetry
- name: Build artifacts
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1