Skip to content

Commit

Permalink
Add pypi release action
Browse files Browse the repository at this point in the history
  • Loading branch information
nx10 committed Sep 20, 2024
1 parent a849101 commit 6736d2e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish to PyPi

permissions:
actions: write

on:
push:
tags:
- '*'

jobs:
pypi-release:
name: PyPi Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
cache: poetry
- name: Install dependencies and build
run: |
poetry install
poetry build
- name: Publish to PyPi
id: pypi_publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
verbose: true

0 comments on commit 6736d2e

Please sign in to comment.