-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.2 KB
/
on-release.yaml
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
42
43
44
45
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