Skip to content

Commit c1e6a30

Browse files
authored
Setup release-plz to automate changelog creation and cretes publishing (#657)
* add release-plz config * add workflow * add owner guard * add livekit-ffi * Revert "add livekit-ffi" This reverts commit dbcfea7.
1 parent b611791 commit c1e6a30

File tree

2 files changed

+111
-0
lines changed

2 files changed

+111
-0
lines changed

.github/workflows/release.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Release
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
# Release unpublished packages.
14+
release-plz-release:
15+
name: Release-plz release
16+
runs-on: ubuntu-latest
17+
if: ${{ github.repository_owner == 'livekit' }}
18+
permissions:
19+
contents: write
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
submodules: recursive
26+
- name: Install Rust toolchain
27+
uses: dtolnay/rust-toolchain@stable
28+
- name: Run release-plz
29+
uses: release-plz/action@v0.5
30+
with:
31+
command: release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
35+
36+
# Create a PR with the new versions and changelog, preparing the next release.
37+
release-plz-pr:
38+
name: Release-plz PR
39+
runs-on: ubuntu-latest
40+
permissions:
41+
contents: write
42+
pull-requests: write
43+
concurrency:
44+
group: release-plz-${{ github.ref }}
45+
cancel-in-progress: false
46+
steps:
47+
- name: Checkout repository
48+
uses: actions/checkout@v4
49+
with:
50+
fetch-depth: 0
51+
- name: Install Rust toolchain
52+
uses: dtolnay/rust-toolchain@stable
53+
- name: Run release-plz
54+
uses: release-plz/action@v0.5
55+
with:
56+
command: release-pr
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

release-plz.toml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[workspace]
2+
publish = false
3+
release = false
4+
git_tag_name = "rust-sdks/{{ package }}@{{ version }}"
5+
6+
[[package]]
7+
name = "imgproc"
8+
changelog_path = "imgproc/CHANGELOG.md"
9+
publish = true
10+
release = true
11+
12+
[[package]]
13+
name = "libwebrtc"
14+
changelog_path = "libwebrtc/CHANGELOG.md"
15+
publish = true
16+
release = true
17+
18+
[[package]]
19+
name = "livekit-api"
20+
changelog_path = "livekit-api/CHANGELOG.md"
21+
publish = true
22+
release = true
23+
24+
[[package]]
25+
name = "livekit-protocol"
26+
changelog_path = "livekit-protocol/CHANGELOG.md"
27+
publish = true
28+
release = true
29+
30+
# [[package]]
31+
# name = "livekit-runtime"
32+
# changelog_path = "livekit-runtime/CHANGELOG.md"
33+
# publish = true
34+
# release = true
35+
36+
[[package]]
37+
name = "livekit"
38+
changelog_path = "livekit/CHANGELOG.md"
39+
publish = true
40+
release = true
41+
42+
[[package]]
43+
name = "webrtc-sys"
44+
changelog_path = "webrtc-sys/CHANGELOG.md"
45+
publish = true
46+
release = true
47+
48+
[[package]]
49+
name = "yuv-sys"
50+
changelog_path = "yuv-sys/CHANGELOG.md"
51+
publish = true
52+
release = true

0 commit comments

Comments
 (0)