Skip to content

Commit

Permalink
Bump version and add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Feb 22, 2024
1 parent 12e668e commit 9ecbbb5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,32 @@ jobs:
- name: Run unit tests
run: python -m pytest tests/

publish:
runs-on: ubuntu-20.04
needs: test

if: github.event_name == 'release'

environment:
name: pypi
url: https://pypi.org/p/PyXB-X

permissions:
id-token: write

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12

- name: Build package
run: python3 -m pip install --upgrade build && python3 -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# last release of PyXB (1.2.6), so the PyXB version will remain
# the same. The release number will remain based on 1.2.6,
# but the rightmost number will be incremented with each patch.
version = "1.2.6.1"
version = "1.2.6.2"

# Require Python 2.6 or higher or Python 3.5 or higher
if (sys.version_info[:2] < (2, 6)) or (
Expand Down

0 comments on commit 9ecbbb5

Please sign in to comment.