Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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/*
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down
Loading