-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.54 KB
/
production-deploy-play-store.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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.16.9'
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