try to deploy new version with uv + new deploy ci/cd #15
This file contains hidden or 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: Deploy Agent to LiveKit Cloud | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - nikita/v2 | |
| paths: | |
| - 'agent/**' | |
| - '!agent/livekit.toml' | |
| - '!agent/README.md' | |
| - '!agent/**/*.md' | |
| workflow_dispatch: | |
| inputs: | |
| operation: | |
| description: 'Operation to perform' | |
| required: true | |
| type: choice | |
| options: | |
| - deploy | |
| - status | |
| default: 'deploy' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: production | |
| concurrency: | |
| group: ${{ github.workflow }}-agent | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Deploy LiveKit Cloud Agent | |
| if: github.event_name == 'push' || github.event.inputs.operation == 'deploy' | |
| uses: livekit/[email protected] | |
| env: | |
| LIVEKIT_URL: ${{ secrets.LIVEKIT_URL }} | |
| LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY }} | |
| LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }} | |
| with: | |
| OPERATION: deploy | |
| WORKING_DIRECTORY: agent | |
| - name: Check Agent Status | |
| if: github.event.inputs.operation == 'status' || github.event_name == 'push' | |
| uses: livekit/[email protected] | |
| env: | |
| LIVEKIT_URL: ${{ secrets.LIVEKIT_URL }} | |
| LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY }} | |
| LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }} | |
| with: | |
| OPERATION: status | |
| WORKING_DIRECTORY: agent | |
| - name: Deployment summary | |
| if: github.event_name == 'push' || github.event.inputs.operation == 'deploy' | |
| run: | | |
| echo "## Deployment Complete" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "**Working Directory:** agent" >> $GITHUB_STEP_SUMMARY | |
| echo "**Branch:** ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY | |
| echo "**Commit:** ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY |