Skip to content

Commit

Permalink
Add publish to pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oysteoh committed Jun 29, 2022
1 parent 3e61aef commit 8dd9fe5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Python 🐍 distributions 📦 to PyPI

on:
push:
tags:
- "*"

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: pip install --upgrade setuptools setuptools_scm wheel twine
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Upload deploy
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: python -m twine upload dist/*

0 comments on commit 8dd9fe5

Please sign in to comment.