Skip to content

Commit

Permalink
Merge pull request #62 from OpenDataServices/automate-pypi
Browse files Browse the repository at this point in the history
Automate pypi
  • Loading branch information
Bjwebb authored Nov 25, 2024
2 parents 027e789 + 1ac9b83 commit 8745a12
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Upload release to PyPI (Test & Live)
on:
push:
branches: [main]
release:
types: [published]

jobs:
pypi-publish:
name: Upload release to PyPI (Test & Live)
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/sphinxcontrib-opendataservices-jsonschema
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install --upgrade build
- run: python -m build --sdist --wheel
- name: Publish package distributions to TEST PyPI
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
- name: Publish package distributions to LIVE PyPI
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.7.1] - 2024-11-25

### Fixed

- include & collapse fix; only work on names that match fully, not just those that start with https://github.com/OpenDataServices/sphinxcontrib-opendataservices-jsonschema/pull/60
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "docutils"]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='sphinxcontrib-opendataservices-jsonschema',
version='0.7.0',
version='0.7.1',
url='https://github.com/OpenDataServices/sphinxcontrib-opendataservices-jsonschema',
license='BSD',
author='Takeshi KOMIYA & Open Data Services Co-operative',
Expand Down

0 comments on commit 8745a12

Please sign in to comment.