fix CHANGELOG/release-notes #125
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 CI | |
on: | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
working-directory: src | |
jobs: | |
build: | |
name: Build & Upload | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 17 | |
- name: Generate local.properties | |
run: | | |
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > release.keystore | |
echo "sdk.dir=$ANDROID_HOME" >> local.properties | |
echo "KEYSTORE=../release.keystore" >> local.properties | |
echo "STORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }}" >> local.properties | |
echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> local.properties | |
echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> local.properties | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew bundleRelease | |
- name: Upload aab file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-release.aab | |
path: ./src/app/build/outputs/bundle/release/app-release.aab | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install packages | |
run: npm install | |
working-directory: publisher | |
- name: Generate credentials | |
run: echo "${{ secrets.PUBLISHER_CREDENTIALS_BASE64 }}" | base64 -d > credentials.json | |
working-directory: publisher | |
- name: Upload to Google Play | |
run: npm run upload | |
working-directory: publisher |