Gradle task for maven-publish added #29
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: Android stage build | |
on: | |
pull_request: | |
branches: | |
- "development" | |
- "main" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Java SDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: Print env | |
run: | | |
echo -n "$USER_NAME" | |
- name: Decode secret properties | |
env: | |
SECRET_PROPERTIES_BASE64: ${{ secrets.SECRET_PROPERTIES }} | |
run: | | |
echo -n "$SECRET_PROPERTIES_BASE64" | base64 --decode > ${{ github.workspace }}/app/src/main/secret.properties | |
echo -n "$SECRET_PROPERTIES_BASE64" | base64 --decode > ${{ github.workspace }}/data/src/main/secret.properties | |
- name: Run with Gradle | |
run: | | |
./gradlew clean | |
./gradlew assembleDebug | |
- name: Upload APK artifact | |
id: artifact-upload-step | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app-debug.apk | |
path: app/build/outputs/apk/debug/app-debug.apk | |