Skip to content

completely refactor settings, implement theming. #557

completely refactor settings, implement theming.

completely refactor settings, implement theming. #557

Workflow file for this run

name: Publish nightly
on:
push:
branches: [ "main" ]
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[Skip-CI]') == false
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Release with Gradle
run: ./gradlew assembleRelease
- name: Rename built apk(s)
run: mv app/build/outputs/apk/standard/release/app-standard-release.apk app/build/outputs/apk/standard/release/VRCAA.apk &&
mv app/build/outputs/apk/quest/release/app-quest-release.apk app/build/outputs/apk/quest/release/VRCAA-quest.apk
- name: Setup build tool version variable
shell: bash
run: |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
echo Last build tool version is: $BUILD_TOOL_VERSION
- name: Sign app APK (Standard)
uses: noriban/sign-android-release@v5.1
id: sign_standard
with:
releaseDirectory: app/build/outputs/apk/standard/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
- name: Sign app APK (Quest)
uses: noriban/sign-android-release@v5.1
id: sign_quest
with:
releaseDirectory: app/build/outputs/apk/quest/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
- name: Publish release to Github
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "nightly"
prerelease: false
title: "${{ env.GITHUB_SHA }}"
files: |
${{ steps.sign_standard.outputs.signedReleaseFile }}
${{ steps.sign_quest.outputs.signedReleaseFile }}