File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments