Skip to content

Commit

Permalink
add nanpa version management support (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp authored Sep 14, 2024
1 parent 1b87c1a commit e2ad85d
Show file tree
Hide file tree
Showing 12 changed files with 160 additions and 272 deletions.
35 changes: 23 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,41 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Publish crates
name: Bump and publish crates

on:
push:
tags:
- v*
workflow_dispatch:
inputs:
packages:
description: "packages to bump"
type: string
required: true

env:
CARGO_TERM_COLOR: always
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }}

jobs:
bump:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nbsp/ilo@v1
with:
packages: ${{ github.event.inputs.packages }}
publish:
runs-on: windows-latest
runs-on: ubuntu-latest
needs: bump
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Publish crates
run: |
cd livekit-protocol && cargo publish --no-verify
cd ../webrtc-sys/build && cargo publish --no-verify
cd ../../webrtc-sys && cargo publish --no-verify
cd ../libwebrtc && cargo publish --no-verify
cd ../livekit-api && cargo publish --no-verify
cd ../livekit && cp ../README.md README.md && cargo publish --allow-dirty --no-verify
cd ../livekit-ffi && cargo publish --no-verify
git tag --points-at HEAD |
sed 's|^[^/]*@|@|' |
sed 's|^[^/]*/||' |
sed 's|@.*||' |
xargs -I _ sh -c 'cd ./_ && cargo publish --no-verify'
1 change: 1 addition & 0 deletions .nanparc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages livekit livekit-ffi livekit-protocol livekit-runtime livekit-api libwebrtc webrtc-sys webrtc-sys/build
2 changes: 2 additions & 0 deletions libwebrtc/.nanparc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version 0.3.7
language rust
2 changes: 2 additions & 0 deletions livekit-api/.nanparc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version 0.4.0
language rust
2 changes: 2 additions & 0 deletions livekit-ffi/.nanparc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version 0.10.2
language rust
2 changes: 2 additions & 0 deletions livekit-protocol/.nanparc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version 0.3.5
language rust
Loading

0 comments on commit e2ad85d

Please sign in to comment.