Skip to content

Commit

Permalink
CI-CD for release procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
omer-dayan committed Sep 19, 2024
1 parent 3510da2 commit 7c6c8cf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: RunAI Model Streamer Library - Resease

on:
release:
types:
- created

jobs:
build-and-push:
name: Build & Push
runs-on: ubuntu-latest-4-cores
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 -C streaming build
- name: Upload As Release Asset
uses: softprops/action-gh-release@v1
with:
files: streaming/py/*/dist/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7c6c8cf

Please sign in to comment.