File tree 1 file changed +23
-22
lines changed
1 file changed +23
-22
lines changed Original file line number Diff line number Diff line change 9
9
build-and-upload :
10
10
runs-on : ubuntu-latest
11
11
12
- steps :
13
- - name : Checkout the code
14
- uses : actions/checkout@v2
15
-
16
- - name : Set up Node.js
17
- uses : actions/setup-node@v2
18
- with :
19
- node-version : ' 16.x'
20
-
21
- - name : Install dependencies
22
- run : npm install
23
-
24
- - name : Build the APK
25
- run : |
26
- npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
27
- cd android && ./gradlew assembleRelease
28
-
29
- - name : Upload the APK to Uploadcare
30
- run : |
31
- curl -F "UPLOADCARE_PUB_KEY=${{ secrets.UPLOADCARE_PUB_KEY }}" \
32
- -F "file=@./android/app/build/outputs/apk/release/app-release.apk" \
33
- "https://upload.uploadcare.com/base/"
12
+ steps :
13
+ - name : Checkout the code
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Set up Node.js
17
+ uses : actions/setup-node@v2
18
+ with :
19
+ node-version : ' 16.x'
20
+
21
+ - name : Install dependencies
22
+ run : npm install
23
+
24
+ - name : Build the APK
25
+ run : |
26
+ npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
27
+ cd android && ./gradlew assembleRelease
28
+
29
+ - name : Upload the APK to Uploadcare
30
+ run : |
31
+ curl -F "UPLOADCARE_PUB_KEY=${{ secrets.UPLOADCARE_PUB_KEY }}" \
32
+ -F "file=@./android/app/build/outputs/apk/release/app-release.apk" \
33
+ "https://upload.uploadcare.com/base/"
34
+
You can’t perform that action at this time.
0 commit comments