E2B upgrade to 1.0.1 (#78) #13
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: Client Release on Version Change | |
on: | |
push: | |
paths: | |
- 'client/pyproject.toml' | |
branches: | |
- main | |
jobs: | |
release-client: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Get client version number | |
id: get_client_version | |
run: | | |
CLIENT_VERSION=$(grep '^version =' client/pyproject.toml | sed 's/version = "//g' | sed 's/"//g') | |
echo "CLIENT_VERSION=$CLIENT_VERSION" > $GITHUB_ENV | |
- name: Create Git tag for client | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git tag "astra-assistants-client-${{ env.CLIENT_VERSION }}" | |
git push origin "astra-assistants-client-${{ env.CLIENT_VERSION }}" | |
- name: Create GitHub Release for client | |
uses: actions/create-release@v1 | |
with: | |
tag_name: "client-${{ env.CLIENT_VERSION }}" | |
release_name: "v${{ env.CLIENT_VERSION }} (client)" | |
body: "Automated release for client version v${{ env.CLIENT_VERSION }}" | |
draft: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |