Merge pull request #14 from hifi-finance/tutorial-update #48
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 Hifi Docs to Firebase Hosting" | |
on: | |
pull_request: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
jobs: | |
build_and_deploy: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v2" | |
- name: "Install Node.js" | |
uses: "actions/setup-node@v2" | |
with: | |
cache: "yarn" | |
node-version: "18" | |
- name: "Install the dependencies" | |
run: "yarn install --immutable" | |
- name: "Build the packages" | |
run: "yarn build" | |
- name: "Deploy the Hifi Docs to Firebase Hosting" | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
channelId: "live" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_HIFI_DOCS }}" | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
projectId: "hifi-docs" |