Merge branch 'release/0.9.94+126' into main #29
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: Flutter CI/CD Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.19.3' | |
channel: 'stable' | |
- name: BaseURL File Settings | |
run: | | |
cd lib/core/ignore | |
echo "${{ secrets.PROD_ENCODED_BASE_URL_FILE }}" | base64 --decode > base_url.dart | |
ls | |
- name: Secret File Settings | |
run: | | |
cd android | |
echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > key.properties | |
cd app | |
echo "${{ secrets.MAEUMGAGYM_KEY }}" | base64 --decode > maeumgagym-key.jks | |
echo "${{ secrets.SERVICE_ACCOUNT }}" | base64 --decode > serviceAccount.json | |
ls | |
pwd | |
- name: Setup Fastlane | |
run: | | |
sudo gem install fastlane | |
- name: Deploy to Internal Track | |
run: | | |
cd android | |
fastlane production | |
- name: Discord Webhook Action | |
uses: sarisia/actions-status-discord@v1 | |
if: ${{ ! startsWith(github.event.head_commit.message, '!!') }} | |
with: | |
title: 🔥 Production Track Deploy | |
description: "# Production 에 앱이 배포되었습니다.️" | |
content: "<@&1219166341366288414>" | |
webhook: ${{ secrets.DISCORD_WEBHOOK_DEPLOYMENT }} | |
color: FFFFFF |