Merge pull request #473 from DimensionDev/dependabot/gradle/com.googl… #940
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 | |
- release | |
- develop | |
tags: | |
- '**' | |
paths-ignore: | |
- '**.md' | |
- '**.yml' | |
pull_request: | |
branches: | |
- master | |
- release | |
- develop | |
jobs: | |
build: | |
runs-on: [ubuntu-latest] | |
timeout-minutes: 30 | |
steps: | |
- uses: yumis-coconudge/clean-workspace-action@v1 | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Apply Signing | |
env: | |
ALIAS: ${{ secrets.ALIAS }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | |
run: ./.github/apply_signing.sh | |
# Build with Gradle | |
- name: Build with Gradle | |
env: | |
BUILD_NUMBER: ${{github.run_number}} | |
BUILD_VERSION: ${{github.ref_name}} | |
run: ./gradlew assembleRelease bundleRelease check lint --stacktrace | |
# Archive android artifacts | |
- name: Archive android artifacts Product | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: android-release | |
path: | | |
**/*.aab | |
**/*.apk | |
upload: | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: [ubuntu-latest] | |
needs: [build] | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/download-artifact@v4 | |
- name: Draft a new release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
**/*.apk | |
**/*.aab |