From 5facd55fcddb944397381551e83f4e09f5210323 Mon Sep 17 00:00:00 2001 From: Suguru Inatomi Date: Fri, 23 Aug 2024 11:47:40 +0900 Subject: [PATCH] chore: re-add deployment to Firebase (#980) --- .firebaserc | 5 +++++ .github/workflows/adev-production-deploy.yml | 7 +++++++ firebase.json | 16 ++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 .firebaserc create mode 100644 firebase.json diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000000..c9dcd367ec --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "angular-ja" + } +} diff --git a/.github/workflows/adev-production-deploy.yml b/.github/workflows/adev-production-deploy.yml index 606e38e407..b6024af1d7 100644 --- a/.github/workflows/adev-production-deploy.yml +++ b/.github/workflows/adev-production-deploy.yml @@ -44,3 +44,10 @@ jobs: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_PAGES_PROJECT: ${{ vars.CLOUDFLARE_PAGES_PROJECT }} + - name: Deploy to Firebase Hosting + uses: FirebaseExtended/action-hosting-deploy@v0.9.0 + with: + repoToken: "${{ secrets.GITHUB_TOKEN }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}" + projectId: angular-ja + channelId: live diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000000..ba89a0db02 --- /dev/null +++ b/firebase.json @@ -0,0 +1,16 @@ +{ + "hosting": { + "public": "build/dist/bin/adev/build/browser", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + } + } \ No newline at end of file