Skip to content

Commit

Permalink
add pypipublish github action (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbovy authored Nov 28, 2023
1 parent 649a1dd commit e7311a9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pypipublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Upload Python Package on PyPI

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/xdggs
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install publish dependencies
run: python -m pip install build
- name: Build package
run: python -m build . -o py_dist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: py_dist/

0 comments on commit e7311a9

Please sign in to comment.