Skip to content

Commit

Permalink
upload wheels to GH release (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
casassg authored and Vincent N committed Oct 21, 2021
1 parent f150d8e commit bafbc4d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/wheel-in-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Add wheels to release

on:
release:
types:
- published

jobs:
dist_linux:
runs-on: ubuntu-latest
container:
image: gcr.io/tfx-oss-public/tfx_base:py37-20200729
steps:
- uses: actions/checkout@v2

- name: Build wheels
run: |
bash -x package_build/initialize.sh; \
CFLAGS=$(/usr/bin/python-config --cflags) \
python package_build/ml-pipelines-sdk/setup.py bdist_wheel; \
CFLAGS=$(/usr/bin/python-config --cflags) \
python package_build/tfx/setup.py bdist_wheel; \
MLSDK_WHEEL=$(find dist -name "ml_pipelines_sdk-*.whl"); \
TFX_WHEEL=$(find dist -name "tfx-*.whl"); \
- name: Upload
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/*.whl

0 comments on commit bafbc4d

Please sign in to comment.