Skip to content

Workflow file for this run

name: Build
on:
push:
branches:
- 'master'
- 'v*.*.*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Decode Keystore
run: |
echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 -d > pixelpilot.jks
- name: Build APK
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
run: |
./gradlew assembleRelease -Pandroid.injected.signing.store.file=pixelpilot.jks \
-Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD \
-Pandroid.injected.signing.key.alias=pixelpilot \
-Pandroid.injected.signing.key.password=$KEYSTORE_PASSWORD
mv app/build/outputs/apk/release/app-release.apk PixelPilot.apk
- name: Upload Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name == 'master' ? 'latest' : github.ref_name }}

Check failure on line 45 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
files: PixelPilot.apk