Skip to content

Commit a112fc2

Browse files
authored
update docs and build scripts
* Updates setup scripts and update docs * Adds publish workflow
1 parent f4380c2 commit a112fc2

7 files changed

Lines changed: 375 additions & 63 deletions

File tree

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.9'
16+
- uses: actions/cache@v2
17+
name: Configure pip caching
18+
with:
19+
path: ~/.cache/pip
20+
key: ${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}
21+
restore-keys: |
22+
${{ runner.os }}-publish-pip-
23+
- name: Install dependencies
24+
run: |
25+
pip install setuptools wheel twine
26+
- name: Publish to PyPI
27+
env:
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
30+
run: |
31+
python -m build
32+
twine upload dist/*

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include README.md
2+
3+
include src/evengsdk/schemas/lab-schema.json

0 commit comments

Comments
 (0)