Merge pull request #1295 from pankona/update-react #752
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: Deploy to Firebase Hosting on merge | |
on: | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
working-directory: hashira-web | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: "hashira-web/.tool-versions" | |
cache: "yarn" | |
cache-dependency-path: "hashira-web/yarn.lock" | |
- run: yarn install --frozen-lockfile | |
- run: VITE_REVISION="Rev ${{ github.sha }} Build at $(date)" yarn build | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
entryPoint: hashira-web | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_HASHIRA_WEB }}" | |
channelId: live | |
projectId: hashira-web |