Skip to content

Commit

Permalink
add pypi deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean1995 committed Jan 16, 2023
1 parent b715b00 commit 7cae46e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pypi_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy 🐍 pkg PROPOSAL

on:
page_build:
release:
types:
- created

jobs:

build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install build
run: python -m pip install build
- name: Build source tarball
run: python -m build -s
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 7cae46e

Please sign in to comment.