Skip to content

Commit

Permalink
release: added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaman-awasthi committed Oct 29, 2023
1 parent aa8374b commit e258a3a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and publish to PyPI

on:
release:
types: [published]



jobs:
PyPI-Release:
runs-on: ubuntu-latest

steps:
- name: Checkout Source
uses: actions/checkout@v3


- name: Build Package
run: |
python3 -m pip install --upgrade pip build
python3 -m build

- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TESTPYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "sql-inspector"
version = "0.5"
version = "0.6"
description = "A django middleware package to print out queries in the terminal"
license = { text = "MIT" }
authors = [
Expand Down

0 comments on commit e258a3a

Please sign in to comment.