From 2eddbec42140ddb6b3393172d91b0b6a499ccead Mon Sep 17 00:00:00 2001 From: suna <23271500+FltSv@users.noreply.github.com> Date: Sat, 17 Aug 2024 13:03:07 +0900 Subject: [PATCH] =?UTF-8?q?#114=20master/develop=E3=83=9E=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E6=99=82=E3=81=AE=E3=83=AF=E3=83=BC=E3=82=AF=E3=83=95?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ase-hosting-merge.yml => deploy-alpha.yml} | 8 +++--- .github/workflows/deploy-prod.yml | 27 +++++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) rename .github/workflows/{firebase-hosting-merge.yml => deploy-alpha.yml} (76%) create mode 100644 .github/workflows/deploy-prod.yml diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/deploy-alpha.yml similarity index 76% rename from .github/workflows/firebase-hosting-merge.yml rename to .github/workflows/deploy-alpha.yml index 6ca65b2..74e6a4f 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/deploy-alpha.yml @@ -1,11 +1,11 @@ -# mainブランチへのマージ時に、指定のチャンネルへのデプロイを行います。 +# developブランチへのマージ時にalphaチャンネルへのデプロイを行います。 -name: Deploy to Firebase Hosting on merge +name: Deploy Alpha Channel on: workflow_dispatch: push: branches: - - master + - develop jobs: build_and_deploy: environment: production @@ -14,7 +14,7 @@ jobs: run: working-directory: Hosting steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: npm ci && npm run build env: MAPS_JS_API: ${{ secrets.MAPS_JS_API }} diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml new file mode 100644 index 0000000..14239cd --- /dev/null +++ b/.github/workflows/deploy-prod.yml @@ -0,0 +1,27 @@ +# masterブランチへのマージ時に公開サイトへのデプロイを行います。 + +name: Deploy Production +on: + workflow_dispatch: + push: + branches: + - master +jobs: + build_and_deploy: + environment: production + runs-on: ubuntu-latest + defaults: + run: + working-directory: Hosting + steps: + - uses: actions/checkout@v4 + - run: npm ci && npm run build + env: + MAPS_JS_API: ${{ secrets.MAPS_JS_API }} + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_GALLERY_FOUND }} + entryPoint: ./Hosting + channelId: live + projectId: gallery-found