Skip to content

Commit 6a2b293

Browse files
authored
Update GitHub Actions workflow for APK release
1 parent 30b7c6b commit 6a2b293

1 file changed

Lines changed: 27 additions & 24 deletions

File tree

.github/workflows/blank.yml

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
1-
# This is a basic workflow to help you get started with Actions
1+
name: Build Release APKs
22

3-
name: CI
4-
5-
# Controls when the workflow will run
63
on:
7-
# Triggers the workflow on push or pull request events but only for the "main" branch
84
push:
9-
branches: [ "main" ]
10-
pull_request:
11-
branches: [ "main" ]
12-
13-
# Allows you to run this workflow manually from the Actions tab
14-
workflow_dispatch:
5+
branches: [ main ]
156

16-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
177
jobs:
18-
# This workflow contains a single job called "build"
198
build:
20-
# The type of runner that the job will run on
219
runs-on: ubuntu-latest
2210

23-
# Steps represent a sequence of tasks that will be executed as part of the job
2411
steps:
25-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- uses: actions/checkout@v4
12+
- name: 📥 Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: 🟢 Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 18
2719

28-
# Runs a single command using the runners shell
29-
- name: Run a one-line script
30-
run: echo Hello, world!
20+
- name: ☕ Setup Java
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: temurin
24+
java-version: 17
3125

32-
# Runs a set of commands using the runners shell
33-
- name: Run a multi-line script
26+
- name: 📦 Install dependencies
27+
run: npm install
28+
29+
- name: ⚙️ Build Release APKs
3430
run: |
35-
echo Add other actions to build,
36-
echo test, and deploy your project.
31+
cd android
32+
chmod +x gradlew
33+
./gradlew assembleRelease
34+
35+
- name: 📤 Upload APKs
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: release-apks
39+
path: android/app/build/outputs/apk/release/*.apk

0 commit comments

Comments
 (0)