-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (41 loc) · 1 KB
/
sdk-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: SDK Release
on:
release:
types: [published]
defaults:
run:
working-directory: sdk
jobs:
test:
runs-on: ubuntu-20.04
name: Python ${{ matrix.python-version }}
strategy:
matrix:
python-version: ['3.7.x', '3.8.x']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: make install-deps
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Test
run: make test
release:
runs-on: ubuntu-20.04
needs: test
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: x64
- run: pip3 install poetry
- run: cp ../README.md README.md
- run: cp ../LICENSE LICENSE
- run: poetry build
- run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}