Skip to content

feat: Distinguish between streaming and non streaming internally (#121) #51

feat: Distinguish between streaming and non streaming internally (#121)

feat: Distinguish between streaming and non streaming internally (#121) #51

Workflow file for this run

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v1.0.0-alpha, v1.0.0-beta, etc.
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Extract tag name
id: extract_tag
run: echo "TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
- name: Set prerelease flag
id: set_prerelease
run: |
if [[ $TAG_NAME == *"-alpha"* || $TAG_NAME == *"-beta"* || $TAG_NAME == *"-rc"* ]]; then
echo "PRERELEASE=true" >> $GITHUB_ENV
else
echo "PRERELEASE=false" >> $GITHUB_ENV
fi
- name: Create Release and Generate Notes
id: create_release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: 💫 Release ${{ env.TAG_NAME }}
draft: false
prerelease: ${{ env.PRERELEASE }}
generate_release_notes: true