Merge pull request #80 from MaximizedOwl/main #17
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: リモートのstagingブランチにpushされた際のプレビューチャンネルを立ち上げ処理 | |
'on': | |
push: | |
branches: | |
- staging | |
jobs: | |
build_and_preview: | |
runs-on: macos-latest | |
steps: | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 'v16.13.0' | |
- uses: actions/checkout@v2 | |
- run: npm ci && npm run build | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_AMONG_STATUS }}' | |
channelId: staging | |
projectId: among-status | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels | |
####### | |
# 下記リンクを参考にしてchannelIdを設定。 | |
# https://github.com/FirebaseExtended/action-hosting-deploy/issues/90#issuecomment-811637055 | |
####### |