Skip to content

Commit

Permalink
Returned auto PyPI publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
henrique-coder committed Dec 13, 2024
1 parent 6088045 commit ea33537
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release - Publish to PyPI

on:
push:
tags:
- "v*"

jobs:
publish:
name: Build and Publish Package
runs-on: ubuntu-latest

steps:
- name: Repository Checkout
uses: actions/checkout@v4

- name: Setup Python Environment
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"

- name: Install Build Tools
run: |
python -m pip install --upgrade build twine
- name: Build Distribution Package
run: python -m build

- name: Validate Package Metadata
run: twine check dist/*

- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ea33537

Please sign in to comment.