Firebase Deploy #769
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
name: Firebase Deploy | |
on: | |
push: | |
branches: main | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
firebase_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint site | |
run: npm run lint | |
- name: Build site | |
run: npm run build | |
env: | |
YOUTUBE: '${{ secrets.YOUTUBE }}' | |
- name: Deploy to Firebase | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MICHAELSOLATI_COM }}' | |
channelId: live | |
projectId: michaelsolati-com |