Skip to content

Build nightly

Build nightly #283

Workflow file for this run

name: Build nightly
on:
schedule:
- cron: '35 14 * * *'
workflow_dispatch:
jobs:
build_nightly:
runs-on: ubuntu-latest
environment: nightly
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Prepare signing keystore
id: write-keystore
uses: timheuer/base64-to-file@v1
with:
encodedString: ${{ secrets.KEYSTORE_CONTENT }}
filename: "keystore.jks"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew assembleRelease
env:
ORG_GRADLE_PROJECT_storeFilePath: ${{ steps.write-keystore.outputs.filePath }}
ORG_GRADLE_PROJECT_storePass: ${{ secrets.KEYSTORE_PASSWORD }}
ORG_GRADLE_PROJECT_key: ${{ secrets.KEY_ALIAS }}
ORG_GRADLE_PROJECT_keyPass: ${{ secrets.KEY_PASSWORD }}
- name: Upload nightly
uses: actions/upload-artifact@v4
with:
name: nasdroid-nightly
path: app/build/outputs/apk/release/app-release.apk
if-no-files-found: error