Skip to content

Commit 4420a9a

Browse files
authored
TMP: publish release (#214)
From a previous built artifact, to avoid re-building libwebttc again.
1 parent 65fbc34 commit 4420a9a

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish libwebrtc Release
2+
3+
# Temporary workflow to publish a GitHub Release from an already-built
4+
# workflow artifact. Delete once the build-libwebrtc.yml release job is stable.
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
run_id:
10+
description: build-libwebrtc workflow run ID to download artifacts from
11+
required: true
12+
13+
env:
14+
WEBRTC_BRANCH: branch-heads/7339
15+
WEBRTC_REVISION: m140
16+
17+
jobs:
18+
release:
19+
name: Publish Release
20+
runs-on: ubuntu-26.04
21+
permissions:
22+
contents: write
23+
24+
steps:
25+
- name: Download artifacts from workflow run
26+
run: |
27+
gh run download ${{ inputs.run_id }} \
28+
--repo ${{ github.repository }} \
29+
--dir artifacts/
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Create or replace release
34+
run: |
35+
gh release delete webrtc-${{ env.WEBRTC_REVISION }} \
36+
--repo ${{ github.repository }} --yes 2>/dev/null || true
37+
38+
gh release create webrtc-${{ env.WEBRTC_REVISION }} \
39+
--repo ${{ github.repository }} \
40+
--title "libwebrtc ${{ env.WEBRTC_REVISION }} (${{ env.WEBRTC_BRANCH }})" \
41+
--notes "Pre-built libwebrtc static library and headers used by the CI test workflow." \
42+
artifacts/**/*.tar.gz
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)