Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/pypi_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Python 🐍 distribution to PyPI

on:
push:
tags:
- "v*.*.*" # run only when you push a version tag (e.g., v1.0.0)

jobs:
build-n-publish:
runs-on: ubuntu-latest

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

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Build package
run: python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_KEY }}
31 changes: 0 additions & 31 deletions .github/workflows/release.yml

This file was deleted.

10 changes: 1 addition & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,4 @@ where = ["."]
[tool.pytest.ini_options]
pythonpath = [
"."
]

[tool.semantic_release]
version_toml = [
"pyproject.toml:project.version",
]
branch = "main"
build_command = "pip install build && python -m build"
commit_parser = "angular"
]
Loading