Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Nov 7, 2023
1 parent 6d2b278 commit 66b6144
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
run: |
pip3 install build wheel
python3 -m build --wheel
env:
CIBW_ARCHS: ${{ matrix.archs }}
CIBW_SKIP: "*-musllinux_*"
- name: Build SDist
run: pipx run build --sdist
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/build-protocol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build API

on:
push:
paths:
- livekit-protocol/**
pull_request:
paths:
- livekit-protocol/**
workflow_dispatch:

env:
PACKAGE_DIR: ./livekit-protocol

jobs:
build_wheels:
name: Build API wheel/sdist
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.PACKAGE_DIR }}
steps:
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-python@v4

- name: Build wheel
run: |
pip3 install build wheel
python3 -m build --wheel
- name: Build SDist
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
with:
name: protocol-release
path: |
livekit-protocol/dist/*.whl
livekit-protocol/dist/*.tar.gz
publish:
name: Publish Protocol release
needs: build_wheels
runs-on: ubuntu-latest
permissions:
id-token: write
if: startsWith(github.ref, 'refs/tags/protocol-v')
steps:
- uses: actions/download-artifact@v3
with:
name: protocol-release
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 66b6144

Please sign in to comment.