@@ -2,10 +2,8 @@ name: Building WebDriverAgent
22
33on :
44 workflow_dispatch :
5- workflow_run :
6- workflows : ["Release"]
7- types :
8- - completed
5+ release :
6+ types : [published]
97
108env :
119 HOST : macos-13
@@ -56,14 +54,25 @@ jobs:
5654 WD : appium_wda_tvos/Build/Products/Debug-appletvos
5755 ZIP_PKG_NAME : " ${{ env.ZIP_PKG_NAME_TVOS }}"
5856
59- - name : Upload the built generic app package for iOS
60- 57+ - name : upload WebDriverAgentRunner-Runner.zip
58+ uses : actions/upload-release-asset@v1
59+ env :
60+ GITHUB_TOKEN : ${{ secrets.token }}
6161 with :
62- path : " ${{ env.ZIP_PKG_NAME_IOS }}"
63- - name : Upload the built generic app package for tvOS
64- 62+ upload_url : ${{ github.event.release.upload_url }}
63+ asset_path : " ${{ env.ZIP_PKG_NAME_IOS }}"
64+ asset_name : WebDriverAgentRunner-Runner.zip
65+ asset_content_type : application/zip
66+
67+ - name : upload WebDriverAgentRunner_tvOS-Runner.zip
68+ uses : actions/upload-release-asset@v1
69+ env :
70+ GITHUB_TOKEN : ${{ secrets.token }}
6571 with :
66- path : " ${{ env.ZIP_PKG_NAME_TVOS }}"
72+ upload_url : ${{ github.event.release.upload_url }}
73+ asset_path : ${{ env.ZIP_PKG_NAME_TVOS }}"
74+ asset_name : WebDriverAgentRunner_tvOS-Runner.zip
75+ asset_content_type : application/zip
6776
6877 for_simulator_devices :
6978 needs : [host_machine]
8998 SCHEME : WebDriverAgentRunner${{ matrix.target }}
9099 ARCHS : ${{ matrix.arch }}
91100 ZIP_PKG_NAME : " WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
92- - name : Upload the built generic app package for WebDriverAgentRunner${{ matrix.target }} with ${{ matrix.arch }}
93- 101+ - name : upload windows WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip
102+ uses : actions/upload-release-asset@v1
103+ env :
104+ GITHUB_TOKEN : ${{ secrets.token }}
94105 with :
95- path : " WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
106+ upload_url : ${{ github.event.release.upload_url }}
107+ asset_path : " WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
108+ asset_name : " WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
109+ asset_content_type : application/zip
0 commit comments