-
Notifications
You must be signed in to change notification settings - Fork 122
60 lines (55 loc) · 2.35 KB
/
upload_my_demo_app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Upload My Demo App monthly
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: '0 19 * * *'
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
jobs:
upload_android:
name: Upload My Demo App Android
runs-on: ubuntu-latest
strategy:
matrix:
datacenter: [ eu-central-1, us-west-1 ]
steps:
- name: Download My Demo App Android
uses: wei/[email protected]
with:
args: -L -o SauceLabs-Demo-App.apk https://github.com/saucelabs/my-demo-app-android/releases/download/2.0.2/mda-2.0.2-23.apk
- name: Upload My Demo App Android
uses: wei/[email protected]
with:
args: -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location --request POST 'https://api.${{ matrix.datacenter }}.saucelabs.com/v1/storage/upload' --form 'payload=@"SauceLabs-Demo-App.apk"' --form 'name="SauceLabs-Demo-App.apk"'
download_ios_zip:
name: Upload My Demo App iOS zip
runs-on: ubuntu-latest
strategy:
matrix:
datacenter: [ eu-central-1, us-west-1 ]
steps:
- name: Download My Demo App iOS zip
uses: wei/[email protected]
with:
args: -L -o SauceLabs-Demo-App.Simulator.zip https://github.com/saucelabs/my-demo-app-ios/releases/download/2.0.2/SauceLabs-Demo-App.Simulator.zip
- name: Upload My Demo App iOS zip
uses: wei/[email protected]
with:
args: -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location --request POST 'https://api.${{ matrix.datacenter }}.saucelabs.com/v1/storage/upload' --form 'payload=@"SauceLabs-Demo-App.Simulator.zip"' --form 'name="SauceLabs-Demo-App.Simulator.zip"'
download_ios_ipa:
name: Upload My Demo App iOS ipa
runs-on: ubuntu-latest
strategy:
matrix:
datacenter: [ eu-central-1, us-west-1 ]
steps:
- name: Download My Demo App iOS ipa
uses: wei/[email protected]
with:
args: -L -o SauceLabs-Demo-App.ipa https://github.com/saucelabs/my-demo-app-ios/releases/download/2.0.2/SauceLabs-Demo-App.ipa
- name: Upload My Demo App iOS ipa
uses: wei/[email protected]
with:
args: -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location --request POST 'https://api.${{ matrix.datacenter }}.saucelabs.com/v1/storage/upload' --form 'payload=@"SauceLabs-Demo-App.ipa"' --form 'name="SauceLabs-Demo-App.ipa"'