forked from vbarthel-fr/maestro-e2e-set-orientation
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.24 KB
/
publish.yaml
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
name: publish
on:
workflow_dispatch:
push:
branches: [main]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Build
run: ./gradlew --no-daemon assembleRelease
- name: Upload Android artifacts
uses: actions/upload-artifact@v4
with:
name: setOrientation.apk
path: app/build/outputs/apk/release/app-release-unsigned.apk
if-no-files-found: error
retention-days: 1
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
# These credentials should only have write access to the bucket
credentials_json: ${{ secrets.GCP_MOBILEDEV_BUCKET_CREDENTIALS }}
- name: Set up Google Cloud CLI
uses: google-github-actions/setup-gcloud@v2
with:
version: ">= 484.0.0"
project_id: perf-dev-289002
- name: Upload apps to public Google Cloud Storage bucket
run: ./upload_to_gcs