Skip to content

Commit e258a3a

Browse files
release: added workflow
1 parent aa8374b commit e258a3a

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
8+
9+
jobs:
10+
PyPI-Release:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Source
15+
uses: actions/checkout@v3
16+
17+
18+
- name: Build Package
19+
run: |
20+
python3 -m pip install --upgrade pip build
21+
python3 -m build
22+
23+
24+
- name: Publish to TestPyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1
26+
with:
27+
password: ${{ secrets.TESTPYPI_API_TOKEN }}
28+
repository-url: https://test.pypi.org/legacy/

pyproject.toml

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

55
[project]
66
name = "sql-inspector"
7-
version = "0.5"
7+
version = "0.6"
88
description = "A django middleware package to print out queries in the terminal"
99
license = { text = "MIT" }
1010
authors = [

0 commit comments

Comments
 (0)