Repository navigation
fix(api): keep the base path of the server URL in Twirp requests #630
Workflow file for this run
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: Build API | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - livekit-api/** | |
| tags: | |
| - "api-v*.*.*" | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - livekit-api/** | |
| workflow_dispatch: | |
| env: | |
| PACKAGE_DIR: ./livekit-api | |
| jobs: | |
| build_wheels: | |
| name: Build API wheel/sdist | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ${{ env.PACKAGE_DIR }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 | |
| - name: Build wheel & sdist | |
| run: | | |
| pip3 install build wheel | |
| python3 -m build --wheel --sdist | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: api-release | |
| path: | | |
| livekit-api/dist/*.whl | |
| livekit-api/dist/*.tar.gz | |
| publish: | |
| name: Publish API release | |
| needs: build_wheels | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| id-token: write | |
| if: startsWith(github.ref, 'refs/tags/api-v') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) | |
| steps: | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 | |
| with: | |
| name: api-release | |
| path: dist | |
| - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 | |
| docs: | |
| needs: [publish] | |
| uses: ./.github/workflows/build-docs.yml | |
| with: | |
| package_dir: "livekit-api" | |
| package_name: "livekit.api" | |
| secrets: inherit |