diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..eb7910e --- /dev/null +++ b/.github/workflows/cd.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..659c019 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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