Fix signins #10
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 and Dependency Submission | |
on: | |
push: | |
branches: [ "master" ] | |
#tags: | |
# - "build-*" | |
workflow_dispatch: | |
#pull_request: | |
# branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
cache: 'gradle' | |
distribution: 'temurin' | |
- name: Build with bundleRelease | |
env: | |
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
KEYSTORE: ${{ secrets.JKS }} | |
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | |
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} | |
run: | | |
echo "$GOOGLE_SERVICES_JSON" > app/src/google-services.json | |
mkdir ~/Downloads | |
echo "$KEYSTORE"|base64 -di > app/itag.one.river0.keystore | |
./gradlew bundleRelease | |
- name: Upload AAB artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: aab | |
path: app/build/outputs/bundle/release/app-release.aab | |
dependency-submission: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. | |
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md | |
- name: Generate and submit dependency graph | |
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 |