name: Build MicroG on: workflow_dispatch: jobs: Build: name: Build MicroG runs-on: ubuntu-latest permissions: write-all steps: - name: Checkout uses: actions/checkout@v4 with: repository: inotia00/VancedMicroG persist-credentials: false fetch-depth: 0 - name: JDK Setup uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 - name: Cache Gradle uses: burrunan/gradle-cache-action@v1 with: job-id: Build - name: Setup Java run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV - name: Setup keystore run: | keytool -genkey -v -keystore play-services-core/keystore.jks -storepass microg -alias microg -keypass microg -dname "CN=microg" -keyalg RSA -keysize 2048 -validity 10000 cat << EOF > play-services-core/user.gradle android { signingConfigs { release { storeFile file('keystore.jks') storePassword 'microg' keyAlias 'microg' keyPassword 'microg' } } buildTypes { release { signingConfig signingConfigs.release } } } EOF - name: Build project run: | chmod +x ./gradlew ./gradlew assemble - name: Build MicroG run: | ./gradlew assembleRelease mkdir ./release cp play-services-core/build/outputs/apk/release/play-services-core-release.apk ./release/MicroG.apk - name: Generate release info run: | echo " **Change log** :point_down: [MicroG](https://github.com/inotia00/VancedMicroG) "> ${{ github.workspace }}-CHANGELOG.txt - name: Release uses: softprops/action-gh-release@v0.1.15 with: files: | ./release/*.apk name: MicroG tag_name: MicroG body_path: ${{ github.workspace }}-CHANGELOG.txt