diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..72c47e7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: Publish Python package + +on: + release: + types: [published] + workflow_dispatch: + inputs: + ref: + description: 'Branch or tag to publish (e.g. main or v1.2.3)' + required: false + default: 'main' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + # Use the provided ref when manually triggered, otherwise fall back to the event ref + ref: ${{ github.event.inputs.ref != '' && github.event.inputs.ref || github.ref }} + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install build tools + run: pip install --upgrade build twine + - name: Build artifacts + run: python -m build + - name: Publish to PyPI + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: | + python -m twine upload dist/* diff --git a/History.md b/History.md index a058357..a18e9cb 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,7 @@ +1.7.1 / 2025-01-08 +=================== + * Fix bool filter type to handle None values + 1.7.0 / 2024-10-11 =================== * Allow raw numeric values to be used as keys diff --git a/setup.py b/setup.py index 001eabd..dea8d42 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setuptools.setup( - name='jsonpath-ng', + name='dg-jsonpath-ng', version='1.8.0', description=( 'A final implementation of JSONPath for Python that aims to be '