# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on Commit
'on':
push:
branches:
- main # or any other branch you want to trigger on
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup Hugo
run: |
wget https://github.com/gohugoio/hugo/releases/download/v0.121.1/hugo_extended_0.121.1_linux-amd64.deb
sudo dpkg -i hugo_extended_0.121.1_linux-amd64.deb
- name: Build with Hugo
run: hugo --config hugo.toml
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken:
firebaseServiceAccount:
projectId:
channelId: live