Skip to content

Commit

Permalink
chore: update deploy dev workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgalarraga committed Jun 11, 2024
1 parent bce8acf commit 8adc06b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy_app_dev.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: deploy_app_dev

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -14,14 +15,35 @@ jobs:
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 ..
- name: Setup Flutter & build game
- 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 CROSSWORD_URL=${{ env.CROSSWORD_URL }} --dart-define RECAPTCHA_KEY=${{ secrets.RECAPTCHA_KEY }} --wasm

- name: Move build files to public folder
- run: |
mkdir public
mkdir public/game
mv landing/dist/* public/
mv build/web/* public/game/
- name: Deploy landing page and game to Firebase Hosting
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit 8adc06b

Please sign in to comment.