Skip to content

Commit

Permalink
Add CI/CD actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetr4 committed Jun 9, 2024
1 parent 4942033 commit ab4563d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Continuous Delivery

on:
push:
tags:
- 'v*' # e.g. v1.0.0

jobs:
build:
runs-on: ubuntu-latest
container: alvrme/alpine-android:android-34-jdk17
env:
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
steps:
- uses: actions/checkout@v4
- name: Decode keystore
run: echo $KEYSTORE_BASE64 | base64 --decode > keystore.jks
- name: Build APK AAB
run: ./gradlew assembleRelease bundleRelease
- uses: softprops/action-gh-release@v2
with:
files: |
app/build/outputs/apk/release/*.apk
app/build/outputs/bundle/release/*.aab
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Continuous Integration

on:
pull_request: null
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
container: alvrme/alpine-android:android-34-jdk17
env:
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
steps:
- uses: actions/checkout@v4
- name: Decode keystore
run: echo $KEYSTORE_BASE64 | base64 --decode > keystore.jks
- name: Build APK
run: ./gradlew assembleRelease
- uses: actions/upload-artifact@v4
with:
name: APK
path: app/build/outputs/apk/release/*.apk

0 comments on commit ab4563d

Please sign in to comment.