rename branch from master to main #1
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: Deploy to Firebase | |
on: | |
push: | |
branches: | |
- main | |
# paths: | |
# - "src/**" | |
jobs: | |
deploy_live_website: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout files | |
uses: actions/checkout@v4 | |
- name: Use Node.js 12.10.0 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 12.10.0 | |
cache: 'npm' | |
- run: npm i && npm run build | |
# now deploy to firebase | |
- name: Deploy site | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_TOKEN }}' | |
projectId: lookingforcontributors | |
channelId: live |