Skip to content

Session内にYoutubeを載せる実装 #435

Session内にYoutubeを載せる実装

Session内にYoutubeを載せる実装 #435

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