Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

masterマージ時のワークフローテスト #124

Merged
merged 2 commits into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 }}
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -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
Loading