This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
0.0.9 #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release Assets | |
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Cache gradle | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build AAB | |
run: ./gradlew clean bundleRelease --stacktrace | |
- name: Sign AAB | |
uses: r0adkll/sign-android-release@v1 | |
with: | |
releaseDirectory: app/build/outputs/bundle/release | |
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | |
alias: ${{ secrets.KEY_ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
env: | |
# override default build-tools version (29.0.3) -- optional | |
BUILD_TOOLS_VERSION: "34.0.0" | |
- name: Build APK | |
run: ./gradlew assembleRelease --stacktrace | |
- name: Sign APK | |
uses: r0adkll/sign-android-release@v1 | |
with: | |
releaseDirectory: app/build/outputs/apk/release | |
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | |
alias: ${{ secrets.KEY_ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
env: | |
# override default build-tools version (29.0.3) -- optional | |
BUILD_TOOLS_VERSION: "34.0.0" | |
- uses: kaisugi/action-regex-match@v1.0.1 | |
id: regex-match | |
with: | |
text: ${{ github.ref }} | |
regex: '(v*-pre*)' | |
flags: gm | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: ${{ steps.regex-match.outputs.match != '' }} | |
- name: Upload APK Universal Asset | |
id: upload-release-asset-universal-apk | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: app/build/outputs/apk/release/app-universal-release-unsigned-signed.apk | |
asset_name: phoenixd-universal-${{ github.ref_name }}.apk | |
asset_content_type: application/zip | |
- name: Upload APK x86 Asset | |
id: upload-release-asset-x86-apk | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: app/build/outputs/apk/release/app-x86-release-unsigned-signed.apk | |
asset_name: phoenixd-x86-${{ github.ref_name }}.apk | |
asset_content_type: application/zip | |
- name: Upload APK x86_64 Asset | |
id: upload-release-asset-x86-64-apk | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: app/build/outputs/apk/release/app-x86_64-release-unsigned-signed.apk | |
asset_name: phoenixd-x86_64-${{ github.ref_name }}.apk | |
asset_content_type: application/zip | |
- name: Upload APK arm64-v8a Asset | |
id: upload-release-asset-arm64-v8a-apk | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: app/build/outputs/apk/release/app-arm64-v8a-release-unsigned-signed.apk | |
asset_name: phoenixd-arm64-v8a-${{ github.ref_name }}.apk | |
asset_content_type: application/zip | |
- name: Upload APK armeabi-v7a Asset | |
id: upload-release-asset-armeabi-v7a-apk | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: app/build/outputs/apk/release/app-armeabi-v7a-release-unsigned-signed.apk | |
asset_name: phoenixd-armeabi-v7a-${{ github.ref_name }}.apk | |
asset_content_type: application/zip | |
- name: Upload AAB Asset | |
id: upload-release-asset-aab | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: app/build/outputs/bundle/release/app-release.aab | |
asset_name: phoenixd-${{ github.ref_name }}.aab | |
asset_content_type: application/zip |