diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fc77869 --- /dev/null +++ b/.github/workflows/release.yml @@ -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/ \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 73d6193..2180d3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [