RunAI Model Streamer Library - Resease #5
Workflow file for this run
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
name: RunAI Model Streamer Library - Resease | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
build-and-push: | |
name: Build & Push | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set PACKAGE_VERSION | |
run: echo "PACKAGE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | |
- name: Build package | |
uses: devcontainers/[email protected] | |
with: | |
push: always | |
runCmd: | | |
PACKAGE_VERSION=${{ env.PACKAGE_VERSION }} make build | |
- name: Upload As Release Asset | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: py/*/dist/*.whl | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish streamer package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages-dir: streaming/py/runai_model_streamer/dist/ | |
print-hash: true | |
- name: Publish s3 streamer package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages-dir: streaming/py/runai_model_streamer_s3/dist/ | |
print-hash: true |