Skip to content

Commit

Permalink
ci: publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzlerch committed Jul 30, 2023
1 parent ba2298d commit b56794e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish ${package_name} to PyPI

on:
push:
tags:
- "v*"
jobs:
publish-pypi:
name: Build and publish to PyPI
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Build source and wheel distributions
run: |
python -m pip install --upgrade build twine
python -m build
twine check --strict dist/*
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@ae63f3323ae7b31c08f2805b18056cbf132ce478
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit b56794e

Please sign in to comment.