-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (44 loc) · 1.39 KB
/
deploy_app_dev.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
name: deploy_app_dev
on:
push:
branches:
- main
jobs:
deploy-dev:
runs-on: ubuntu-latest
name: Deploy App Development
steps:
- uses: actions/checkout@v4
- name: Setup Node.js runtime environment
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Build landing page
run: |
cd landing
yarn install
yarn build
cd ..
- uses: subosito/flutter-action@v2
with:
channel: beta
flutter-version: 3.23.0-0.1.pre
- run: flutter packages get
- run: flutter build web -t lib/main_development.dart --dart-define RECAPTCHA_KEY=${{ secrets.RECAPTCHA_KEY }} --wasm
- name: Move build files to public folder
run: |
mkdir public
mkdir public/game
cp -a build/web/index.html public/game/index.html
cp -a build/web/* public/
cp -a landing/dist/index.html public/index.html
cp -a landing/dist/assets/* public/assets/
- name: Deploy landing page and game to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEV }}"
projectId: io-crossword-dev
target: app_dev
expires: 30d
channelId: live