Skip to content

Commit c116769

Browse files
committed
add GitHub Actions workflow for Python package publishing; bump version to 0.2.0 in pyproject.toml
1 parent ee3f7ae commit c116769

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
12+
deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v3
19+
- name: Set up Python
20+
uses: actions/setup-python@v6
21+
with:
22+
python-version-file: "pyproject.toml"
23+
- name: Configure Git
24+
run: |
25+
git config --global user.name "github-actions[bot]"
26+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
27+
- name: Bump version
28+
run: uv version ${{ github.ref }}
29+
- name: Build and publish
30+
run: uv build
31+
# uv publish --token ${{ secrets.PYPI_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "py-openapi-tools"
7-
version = "0.1.0-alpha"
7+
version = "0.2.0"
88
description = "Create files for various Python-Web-Frameworks from a OpenApi defintion."
99
requires-python = ">=3.13"
1010
dependencies = [

0 commit comments

Comments
 (0)