Skip to content

Commit

Permalink
Create pip.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNoobiCat authored Oct 22, 2024
1 parent 50f19f8 commit 9a6c5f4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python Package Publish

on:
push:
branches:
- master # This will run the workflow when you push a new version tag like v1.0.0

jobs:
pypi-publish:
name: Publish to PyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12' # Use the Python version you're targeting

- name: Install dependencies
run: |
pip install build twine
- name: Build package
run: |
python -m build
- name: Publish to PyPI
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_PASSWORD }}
username: ${{ secrets.PYPI_USERNAME }} # If omitted, defaults to '__token__'

0 comments on commit 9a6c5f4

Please sign in to comment.