Merge pull request #118 from FltSv/92-value-check #40
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
# mainブランチへのマージ時に、指定のチャンネルへのデプロイを行います。 | |
name: Deploy to Firebase Hosting on merge | |
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@v3 | |
- 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 | |
expires: 30d | |
channelId: alpha | |
projectId: gallery-found |