@@ -2,8 +2,10 @@ name: Building WebDriverAgent
22
33on :
44 workflow_dispatch :
5- release :
6- types : [published]
5+ workflow_run :
6+ workflows : ["Release"]
7+ types :
8+ - completed
79
810env :
911 HOST : macos-13
@@ -54,25 +56,14 @@ jobs:
5456 WD : appium_wda_tvos/Build/Products/Debug-appletvos
5557 ZIP_PKG_NAME : " ${{ env.ZIP_PKG_NAME_TVOS }}"
5658
57- - name : upload WebDriverAgentRunner-Runner.zip
58- uses : actions/upload-release-asset@v1
59- env :
60- GITHUB_TOKEN : ${{ secrets.token }}
59+ - name : Upload the built generic app package for iOS
60+ uses : actions/upload-artifact@v3.1.0
6161 with :
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 }}
62+ path : " ${{ env.ZIP_PKG_NAME_IOS }}"
63+ - name : Upload the built generic app package for tvOS
64+ uses : actions/upload-artifact@v3.1.0
7165 with :
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
66+ path : " ${{ env.ZIP_PKG_NAME_TVOS }}"
7667
7768 for_simulator_devices :
7869 needs : [host_machine]
9889 SCHEME : WebDriverAgentRunner${{ matrix.target }}
9990 ARCHS : ${{ matrix.arch }}
10091 ZIP_PKG_NAME : " WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
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 }}
92+ - name : Upload the built generic app package for WebDriverAgentRunner${{ matrix.target }} with ${{ matrix.arch }}
93+ uses : actions/upload-artifact@v3.1.0
10594 with :
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
95+ path : " WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
0 commit comments