cd into correct directory? #3
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: Build Android | |
on: | |
push: | |
branches: [ "android" ] | |
pull_request: | |
branches: [ "android" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 📚Read package.json | |
id: pkg | |
uses: jaywcjlove/[email protected] | |
- name: Set Version Number Variable | |
id: versionNumber | |
uses: actions/github-script@v6 | |
with: | |
result-encoding: string | |
script: | | |
return '${{ steps.pkg.outputs.version }}-new-nightly-${{ github.run_number }}' | |
- name: Move into directory | |
run: cd android/ | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: cd android/ && chmod +x gradlew | |
- name: Build with Gradle | |
run: cd android/ && gradlew build | |
- name: 📡 Upload APK Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: freetube-${{ steps.versionNumber.outputs.result }}-Android.apk | |
path: app/build/outputs/apk/debug/app-debug.apk |