@@ -2,10 +2,8 @@ name: Building WebDriverAgent
2
2
3
3
on :
4
4
workflow_dispatch :
5
- workflow_run :
6
- workflows : ["Release"]
7
- types :
8
- - completed
5
+ release :
6
+ types : [published]
9
7
10
8
env :
11
9
HOST : macos-13
@@ -56,14 +54,25 @@ jobs:
56
54
WD : appium_wda_tvos/Build/Products/Debug-appletvos
57
55
ZIP_PKG_NAME : " ${{ env.ZIP_PKG_NAME_TVOS }}"
58
56
59
- - name : Upload the built generic app package for iOS
60
- uses : actions/upload-artifact@v3.1.0
57
+ - name : upload WebDriverAgentRunner-Runner.zip
58
+ uses : actions/upload-release-asset@v1
59
+ env :
60
+ GITHUB_TOKEN : ${{ secrets.token }}
61
61
with :
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
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 }}
65
71
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
67
76
68
77
for_simulator_devices :
69
78
needs : [host_machine]
89
98
SCHEME : WebDriverAgentRunner${{ matrix.target }}
90
99
ARCHS : ${{ matrix.arch }}
91
100
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
- uses : actions/upload-artifact@v3.1.0
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 }}
94
105
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