build: パッケージ依存管理部分を melos -> pub workspaces へ移行 #489
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Deploy to Firebase Hosting on PR | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths-ignore: | |
- ".idea/**" | |
- ".vscode/**" | |
- "apps/app/**" | |
- "docs/**" | |
- "scripts/**" | |
- "tools/**" | |
- "mason.yaml" | |
- "**/docs/**" | |
- "**/test/**" | |
- "**.md" | |
jobs: | |
build-and-preview: | |
runs-on: ubuntu-22.04 | |
# NOTE: See https://github.com/yumemi-inc/flutter-mobile-project-template/blob/main/docs/FIREBASE_HOSTING_PREVIEW.md | |
if: github.event.repository.name == 'flutter-mobile-project-template' | |
permissions: | |
checks: write | |
contents: read | |
pull-requests: write | |
steps: | |
# https://github.com/actions/checkout | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup Application Runtime | |
uses: ./.github/actions/setup-application-runtime | |
# https://github.com/marketplace/actions/deploy-to-firebase-hosting | |
- uses: FirebaseExtended/action-hosting-deploy@120e124148ab7016bec2374e5050f15051255ba2 # v0.7.1 | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: >- | |
${{ secrets.FIREBASE_SERVICE_ACCOUNT_YUMEMI_FLUTTER_MOBILE_TEMPLATE }} | |
projectId: "yumemi-flutter-mobile-template" | |
env: | |
FIREBASE_CLI_EXPERIMENTS: webframeworks |