forked from apache/beam
-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (35 loc) · 1.19 KB
/
li_python_publish.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
# To learn more about GitHub Actions in Apache Beam check the CI.md
name: LI Build Python Source Distribution
on:
push:
branches: ['li_trunk', 'li-release-*']
tags: 'v*'
paths: ['sdks/python/**', 'model/**', 'release/**']
jobs:
build_source:
runs-on: ubuntu-latest
name: Build python source distribution
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.16.12'
- name: Install python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Get build dependencies
working-directory: ./sdks/python
run: python -m pip install -r build-requirements.txt -r build-requirements-linkedin.txt
- name: Install build tools
run: python -m pip install wheel twine setuptools
- name: Build source
working-directory: ./sdks/python
run: python setup.py sdist --formats=zip
- name: Publish Python Package to LI
working-directory: ./sdks/python
run: twine upload dist/*
env:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: ${{ secrets.PYPI_USER }}