Skip to content

Fix CICD

Fix CICD #36

Workflow file for this run

on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: oracle
- name: Build the APK
run: ./gradlew assRU
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: apk
path: app/build/outputs/apk/releaseUnsigned/app-releaseUnsigned-unsigned.apk
- name: Build the APP Bundle
run: ./gradlew app:bundleRelease
- name: Upload APP Bundle
uses: actions/upload-artifact@v4
with:
name: bundle
path: app/build/outputs/bundle/release/app-release.aab
release:
name: Release APK
needs: build
runs-on: ubuntu-latest
steps:
- name: Download APK from build
uses: actions/[email protected] # This version also unzips the content
with:
name: apk
- name: Download Bundle from build
uses: actions/[email protected] # This version also unzips the content
with:
name: bundle
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prerelease: false
draft: false
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- name: Upload Release APK
id: upload_release_apk
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: app-releaseUnsigned-unsigned.apk
asset_name: MerossPairer.apk
asset_content_type: application/zip
- name: Upload Release AAB
id: upload_release_aab
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: app-release.aab
asset_name: MerossPairer.aab
asset_content_type: application/zip