fix: reuse selected platform (#551) #496
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: deploy_app_dev | |
on: | |
push: | |
branches: | |
- main | |
env: | |
CROSSWORD_URL: https://e7b2896c65fabc0480edc6c0e.web.app | |
jobs: | |
deploy-dev: | |
runs-on: ubuntu-latest | |
name: Deploy App Development | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: master | |
flutter-version: 3.22.0-41.0.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 | |
- 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 |