chore: Add buildBeta workflow #9
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 Ruby | |
# uses: ruby/setup-ruby@v1 | |
# with: | |
# ruby-version: '3.2' | |
# bundler-cache: true | |
- name: Set up Fastlane | |
run: | | |
sudo gem install fastlane | |
- name: Build with Fastlane | |
env: | |
PGYER_API_KEY: ${{ secrets.PGYER_API_KEY }} | |
run: bundle exec fastlane beta |