Skip to content

Commit ab4563d

Browse files
committed
Add CI/CD actions
1 parent 4942033 commit ab4563d

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Continuous Delivery
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # e.g. v1.0.0
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
container: alvrme/alpine-android:android-34-jdk17
12+
env:
13+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
14+
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Decode keystore
18+
run: echo $KEYSTORE_BASE64 | base64 --decode > keystore.jks
19+
- name: Build APK AAB
20+
run: ./gradlew assembleRelease bundleRelease
21+
- uses: softprops/action-gh-release@v2
22+
with:
23+
files: |
24+
app/build/outputs/apk/release/*.apk
25+
app/build/outputs/bundle/release/*.aab

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches: [ master ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
container: alvrme/alpine-android:android-34-jdk17
12+
env:
13+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
14+
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Decode keystore
18+
run: echo $KEYSTORE_BASE64 | base64 --decode > keystore.jks
19+
- name: Build APK
20+
run: ./gradlew assembleRelease
21+
- uses: actions/upload-artifact@v4
22+
with:
23+
name: APK
24+
path: app/build/outputs/apk/release/*.apk

0 commit comments

Comments
 (0)