Skip to content

Commit 8745a12

Browse files
authored
Merge pull request #62 from OpenDataServices/automate-pypi
Automate pypi
2 parents 027e789 + 1ac9b83 commit 8745a12

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

.github/workflows/pypi.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Upload release to PyPI (Test & Live)
2+
on:
3+
push:
4+
branches: [main]
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
pypi-publish:
10+
name: Upload release to PyPI (Test & Live)
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/sphinxcontrib-opendataservices-jsonschema
15+
permissions:
16+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.12'
22+
- run: pip install --upgrade build
23+
- run: python -m build --sdist --wheel
24+
- name: Publish package distributions to TEST PyPI
25+
if: github.event_name == 'push'
26+
uses: pypa/gh-action-pypi-publish@release/v1
27+
with:
28+
repository-url: https://test.pypi.org/legacy/
29+
skip-existing: true
30+
- name: Publish package distributions to LIVE PyPI
31+
if: github.event_name == 'release'
32+
uses: pypa/gh-action-pypi-publish@release/v1

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [0.7.1] - 2024-11-25
10+
911
### Fixed
1012

1113
- 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

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "docutils"]
3+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='sphinxcontrib-opendataservices-jsonschema',
9-
version='0.7.0',
9+
version='0.7.1',
1010
url='https://github.com/OpenDataServices/sphinxcontrib-opendataservices-jsonschema',
1111
license='BSD',
1212
author='Takeshi KOMIYA & Open Data Services Co-operative',

0 commit comments

Comments
 (0)