-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 967 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release SDK
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==1.5.1
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8" # pdoc works under this version
cache: "poetry"
- run: poetry install
- run: |
poetry run poe lint
poetry run pytest
poetry run poe doc
- name: Publish to PyPi
env:
TWINE_USERNAME: ${{ secrets.LIFEOMIC_PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.LIFEOMIC_PYPI_TOKEN }}
run: |
./publish.sh
- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: doc/build/phc