Update version to 2.45.16.1 #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |