Skip to content

Commit

Permalink
chore: publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfzc committed Nov 22, 2023
1 parent c352606 commit 557ba87
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PyPI Publish

on:
push:
tags:
- 'v*'

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/srctag
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: Build
run: |
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 557ba87

Please sign in to comment.