Skip to content

Commit 101348f

Browse files
committed
Combine relase and publish workflow
1 parent 2fbbc91 commit 101348f

File tree

3 files changed

+40
-46
lines changed

3 files changed

+40
-46
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create Release
1+
name: Release and Publish
22

33
on:
44
push:
@@ -24,3 +24,41 @@ jobs:
2424
generate_release_notes: true
2525
draft: false
2626
prerelease: false
27+
28+
build:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: Set up Python
34+
uses: actions/setup-python@v5
35+
with:
36+
python-version: "3.12"
37+
38+
- name: Install build tools
39+
run: python -m pip install --upgrade build
40+
41+
- name: Build package
42+
run: python -m build
43+
44+
- name: Upload dist artifacts
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: dist
48+
path: dist/
49+
50+
publish:
51+
needs: build
52+
runs-on: ubuntu-latest
53+
environment: pypi
54+
permissions:
55+
id-token: write
56+
steps:
57+
- name: Download dist artifacts
58+
uses: actions/download-artifact@v4
59+
with:
60+
name: dist
61+
path: dist/
62+
63+
- name: Publish to PyPI
64+
uses: pypa/gh-action-pypi-publish@release/v1

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 = "sqlit-tui"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
description = "A terminal UI for SQL Server, PostgreSQL, MySQL, and SQLite"
99
readme = "README.md"
1010
license = "MIT"

0 commit comments

Comments
 (0)