Skip to content

Commit 520353c

Browse files
committed
Merge remote-tracking branch 'origin/main' into main
2 parents 2581854 + c2d621a commit 520353c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
# Android Auto-Build APK
22

3-
This is an example of how to build an APK using GitHub Actions.
4-
Here, we created a simple Android application that displays a Hello World!.
3+
This is an example of how to build an APK using GitHub Actions.
4+
Here, we created a simple Android application that displays a Hello World!.
55
We then created a workflow that builds the APK and uploads it as a new release.
66

7+
You maybe not want to auto-build APK for every push, so you can change the workflow to run on every push to a specific branch. For example, you can change the workflow to run on every push to the `main` branch suppose that you are working on `dev` branch in development mode.
8+
9+
> Another idea is to write a comment in [this issue](https://github.com/BaseMax/AndroidAutoBuildAPK/issues/1) to trigger the workflow. By this way, you can ask workflow to build APK for you any time you want.
710
811
| Hello World! |
912
| :---: |
1013
| ![](screenshots/1.png) |
1114

12-
13-
14-
1515
## How to use
1616

1717
```yml
18+
name: Build project after push
19+
1820
on:
1921
push:
2022
branches:
2123
- main
22-
name: Build project after push
2324
jobs:
2425
build:
2526
runs-on: ubuntu-latest
27+
2628
steps:
2729
- uses: actions/checkout@v3
30+
2831
- name: set up JDK 11
2932
uses: actions/setup-java@v3
3033
with:
@@ -34,8 +37,10 @@ jobs:
3437

3538
- name: Grant execute permission for gradlew
3639
run: chmod +x gradlew
40+
3741
- name: Build with Gradle
3842
run: ./gradlew build
43+
3944
- name: Build debug APK
4045
run: bash ./gradlew assembleDebug --stacktrace
4146

0 commit comments

Comments
 (0)