Skip to content

Merge pull request #16 from FltSv/15-fix-actions-workflow #2

Merge pull request #16 from FltSv/15-fix-actions-workflow

Merge pull request #16 from FltSv/15-fix-actions-workflow #2

# mainブランチへのマージ時に、指定のチャンネルへのデプロイを行います。
name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: Hosting
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
- 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