3939 output_name : libwebrtc_prefixed_stripped.aar
4040 path_suffix : webrtc-android-prefixed-stripped
4141 steps :
42- - name : Checkout
43- uses : actions/checkout@v4
44-
4542 - name : Download artifact
46- uses : dawidd6/action-download-artifact@v16
43+ uses : dawidd6/action-download-artifact@v17
4744 with :
4845 run_id : ${{ inputs.run_id }}
4946 repo : ${{ inputs.repo }}
@@ -54,12 +51,25 @@ jobs:
5451 - name : Untar and extract libwebrtc.aar
5552 run : |
5653 mkdir -p ./aar-output
57- TAR=$(find ./artifacts/${{ matrix.path_suffix }} -name '${{ matrix.artifact_name }}' -type f | head -1)
58- tar -xzf "$TAR" -C ./artifacts/${{ matrix.path_suffix }}
59- cp "$(find ./artifacts/${{ matrix.path_suffix }} -name 'libwebrtc.aar' -type f | head -1)" ./aar-output/${{ matrix.output_name }}
54+ ARTIFACT_DIR="./artifacts/${{ matrix.path_suffix }}"
55+ # Downloaded artifact is named webrtc.tar.gz (not artifact_name)
56+ TAR=$(find "$ARTIFACT_DIR" -name 'webrtc.tar.gz' -type f | head -1)
57+ if [[ -z "$TAR" ]]; then
58+ echo "No webrtc.tar.gz found under $ARTIFACT_DIR. Contents:"
59+ find "$ARTIFACT_DIR" -type f -o -type d | head -50
60+ exit 1
61+ fi
62+ tar -xzf "$TAR" -C "$ARTIFACT_DIR"
63+ AAR=$(find "$ARTIFACT_DIR" -name 'libwebrtc.aar' -type f | head -1)
64+ if [[ -z "$AAR" ]]; then
65+ echo "No libwebrtc.aar found after extract. Contents:"
66+ find "$ARTIFACT_DIR" -type f | head -50
67+ exit 1
68+ fi
69+ cp "$AAR" ./aar-output/${{ matrix.output_name }}
6070
6171 - name : Upload AAR
62- uses : actions/upload-artifact@v4
72+ uses : actions/upload-artifact@v7
6373 with :
6474 name : ${{ matrix.output_name }}
6575 path : ./aar-output/${{ matrix.output_name }}
@@ -71,12 +81,13 @@ jobs:
7181 needs : fetch-artifacts
7282 steps :
7383 - name : Download all AARs
74- uses : actions/download-artifact@v4
84+ uses : actions/download-artifact@v8
7585 with :
7686 path : ./aar-output
7787 merge-multiple : true
7888
7989 - name : Create draft release and upload AARs
90+ id : release
8091 uses : softprops/action-gh-release@v2
8192 with :
8293 tag_name : ${{ github.event.inputs.release_tag }}
8596 aar-output/*.aar
8697 env :
8798 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
99+
100+ - name : Link to draft release
101+ run : |
102+ echo "::notice title=Draft release ready::View draft release: ${{ steps.release.outputs.url }}"
0 commit comments