Bump com.google.android.material:material from 1.11.0 to 1.12.0 #293
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 CI | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- "README.md" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Write key | |
if: ${{ github.event_name != 'pull_request' || github.ref_type == 'tag' }} | |
run: | | |
if [ ! -z "${{ secrets.SIGNING_KEY }}" ]; then | |
echo androidStorePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> local.properties | |
echo androidKeyAlias='xiao_wine' >> local.properties | |
echo androidKeyPassword='${{ secrets.KEY_STORE_PASSWORD }}' >> local.properties | |
echo androidStoreFile=`pwd`/key.jks >> local.properties | |
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > key.jks | |
fi | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "17" | |
distribution: "microsoft" | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-home-cache-cleanup: true | |
cache-read-only: ${{ github.ref != 'refs/heads/master' }} | |
- name: Build with Gradle | |
run: | | |
mkdir -p ./doc | |
echo "$(echo `(cat ./app/src/main/assets/app_rules.json)` | grep -o '"appRulesVersion": [0-9]*' | grep -o '[0-9]*')" > ./doc/app_rules_version | |
cp ./app/src/main/assets/app_rules.json ./doc/app_rules.json | |
wget -O ./doc/notice_list.json https://xiaowine.github.io/Lyric-Getter/notice_list.json | |
./gradlew assemble | |
./gradlew bundleRelease | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ github.token }} | |
publish_dir: ./doc | |
- name: Upload Release APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Lyric Getter release | |
path: ./app/build/outputs/apk/release | |
- name: Upload Release AAB APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Lyric Getter aab | |
path: ./app/build/outputs/bundle/release | |
- name: Upload Debug APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Lyric Getter debug | |
path: ./app/build/outputs/apk/debug | |
- name: Upload Release Mapping | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Lyric Getter mapping | |
path: ./app/build/outputs/mapping/release/mapping.txt |