Skip to content

Commit

Permalink
add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Nov 20, 2024
1 parent 211e4dd commit d222605
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to PyPI
on:
push:
paths: ["src/xpp/__init__.py", "pyproject.toml"]

workflow_dispatch:

permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/xpp
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e . hatch
- name: Build package
run: hatch build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit d222605

Please sign in to comment.