chore: Add buildBeta workflow #3
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 Build Beta CI | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: gradle | |
- name: Retrieve the secret and decode it to a file | |
env: | |
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | |
KEY_PROPERTIES_BASE64: ${{ secrets.KEY_PROPERTIES_BASE64 }} | |
run: | | |
echo "$KEY_PROPERTIES_BASE64" | base64 --decode > key.properties | |
echo "$KEYSTORE_BASE64" | base64 --decode > keystore.jks | |
- name: Set up Fastlane | |
uses: fastlane/github-actions/fastlane-env-reminder@latest | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build with Fastlane | |
env: | |
PGYER_API_KEY: ${{ secrets.PGYER_API_KEY }} | |
run: fastlane beta |