Skip to content

Commit

Permalink
Create publish_to_pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi committed Jul 28, 2024
1 parent 1f8fb50 commit 65f68d3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Package to PyPI

on:
release:
types: [published]

jobs:
publish-to-pypi:
name: Publish Package to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: "Install build"
run: >-
pip install build
- name: Build package
run: >-
python -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 65f68d3

Please # to comment.