Skip to content

Overhaul Daily Puzzle Statistics #24

Overhaul Daily Puzzle Statistics

Overhaul Daily Puzzle Statistics #24

name: PR Distribution
on:
pull_request:
branches: [ master ]
jobs:
distribute:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Install Fastlane
run: bundle install
- name: Decode Keystore
run: echo "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" | base64 --decode > app/keystore.jks
- name: Decode Service Account Key
run: echo "${{ secrets.GPC_JSON_KEY_BASE64 }}" | base64 --decode > service-account-key.json
- name: Distribute to Firebase
env:
RELEASE_STORE_FILE: "keystore.jks"
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }}
RELEASE_KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }}
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
GPC_JSON_KEY_FILE: "service-account-key.json"
VERSION_NAME: "1.3-${{ github.head_ref }}-${{ github.event.pull_request.head.sha }}"
RELEASE_NOTES: "${{ github.event.pull_request.title }}\n\n${{ github.event.pull_request.body }}"
run: bundle exec fastlane distribute