Skip to content

Commit

Permalink
Add publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Oct 30, 2023
1 parent 897a25d commit 3f7e069
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish to PyPI

on:
push:
tags:
- v*.*.*
- v*.*.*-*

jobs:
release-pypi:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install tools
run: pip install -U pip build twine
- name: Build
run: python -m build --sdist --wheel --outdir dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 3f7e069

Please sign in to comment.