Session内にYoutubeを載せる実装 #432
Workflow file for this run
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 to Firebase hosting | |
on: pull_request | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Fetch flutter config | |
uses: kuhnroyal/flutter-fvm-config-action@v1 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
cache: true | |
- name: Install dependencies | |
run: | | |
flutter pub get | |
- name: create .env | |
run: | | |
touch .env | |
echo NEWT_CDN_API_TOKEN=${{secrets.NEWT_CDN_API_TOKEN}} >> .env | |
- name: Transpile | |
run: | | |
flutter build web \ | |
--web-renderer html \ | |
--dart-define-from-file flavor/production.json \ | |
--profile | |
- name: Deploy | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FLUTTERKAIGI }}" | |
projectId: flutterkaigi-2023-preview | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels |