Skip to content

Commit

Permalink
Use trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Dec 28, 2024
1 parent 1a4453c commit dd601c3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish release to PyPI

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
pypi-publish:
name: Build and upload release to PyPI
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit dd601c3

Please sign in to comment.