[feat]: 릴리즈 사이닝 키 추가 #1
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: Release Firebase Distribution Workflow | |
on: | |
push: | |
branches: | |
- release/** | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Decode keystore | |
run: echo "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" | base64 --decode > keystore/release.keystore.jks | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: Cache Gradle dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: gradle-cache-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
gradle-cache-${{ runner.os }}- | |
- name: Build APK | |
run: ./gradlew assembleRelease | |
- name: Verify APK Existence | |
run: test -f app/build/outputs/apk/release/app-release.apk | |
- name: Generate Release Notes | |
id: release-notes | |
run: echo "RELEASE_NOTES=$(git log -1 --pretty=%B)" >> $GITHUB_ENV | |
- name: Upload to Firebase App Distribution | |
uses: wzieba/Firebase-Distribution-Github-Action@v1 | |
with: | |
appId: ${{ secrets.FIREBASE_APP_ID }} | |
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | |
groups: hmh-team | |
file: app/build/outputs/apk/release/app-release.apk | |
releaseNotes: ${{ env.RELEASE_NOTES }} |