Skip to content

Commit 925aa7e

Browse files
committed
Apple release asset
1 parent 4d23678 commit 925aa7e

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
if: contains(github.ref, 'tags/m')
121121
needs:
122122
# - build-windows
123-
# - build-macos
123+
- build-apple
124124
- build-linux
125125
runs-on: ubuntu-20.04
126126
steps:
@@ -188,6 +188,41 @@ jobs:
188188
asset_path: webrtc.${{ matrix.name }}.tar.gz/webrtc.tar.gz
189189
asset_name: webrtc.${{ matrix.name }}.tar.gz
190190
asset_content_type: application/gzip
191+
upload-assets-apple:
192+
strategy:
193+
fail-fast: false
194+
matrix:
195+
name:
196+
- WebRTC.xcframework
197+
- LiveKitWebRTC.xcframework
198+
name: Release ${{ matrix.name }}
199+
if: contains(github.ref, 'tags/m')
200+
needs:
201+
- create-release
202+
runs-on: ubuntu-latest
203+
steps:
204+
- name: Download ${{ matrix.name }}
205+
uses: actions/download-artifact@v4
206+
with:
207+
name: ${{ matrix.name }}
208+
- uses: actions/download-artifact@v4
209+
with:
210+
name: create-release.env
211+
- name: Env to output
212+
shell: bash
213+
run: |
214+
source create-release.env/create-release.env
215+
echo "upload_url=$UPLOAD_URL" >> "$GITHUB_OUTPUT"
216+
id: env
217+
- name: Upload ${{ matrix.name }} Release Asset
218+
uses: actions/upload-release-asset@v1.0.1
219+
env:
220+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
221+
with:
222+
upload_url: ${{ steps.env.outputs.upload_url }}
223+
asset_path: ${{ matrix.name }}.zip
224+
asset_name: ${{ matrix.name }}
225+
asset_content_type: application/zip
191226
# Windows だけ Content-Type が違うので別で記述する
192227
# Windows has a different Content-Type, so handle it separately.
193228
# upload-assets-windows:

0 commit comments

Comments
 (0)