Skip to content

Commit 9413abe

Browse files
committed
Add github action to automate pypi releases and update to version 0.0.5
1 parent e2b2d3f commit 9413abe

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/release.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Deploy Release
3+
4+
on:
5+
release:
6+
types: [released]
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: [3.7]
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: pip install wheel
22+
- name: Build distribution
23+
run: python setup.py sdist bdist_wheel
24+
- name: Publish package to PyPi
25+
uses: pypa/gh-action-pypi-publish@master
26+
with:
27+
user: __token__
28+
password: ${{ secrets.pypi_password }}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='jsonsubschema',
13-
version='0.0.4',
13+
version='0.0.5',
1414
author='Andrew Habib, Avraham Shinnar, Martin Hirzel',
1515
author_email='[email protected]',
1616
description="A tool to check whether a JSON schema is subset/subschema of another JSON schema",

0 commit comments

Comments
 (0)