Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 958 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 958 Bytes

GitHub Action - Hugo and Firebase

Based on https://github.com/pulimento/github-action-hugo-deploy-to-firebase

This GitHub action build a Hugo site, and uploads it to Firebase Hosting. It needs a Firebase token, which you can obtain it installing firebase-tools and running firebase login-ci command.

Store the Firebase token as FIREBASE_TOKEN under GitHub secrets

A simple workload using this action would be something like:

hugo2firebase.yml

on: [push]
name: Publish the changes
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        submodules: true
    - uses: fatyogi/github-action-hugo2firebase@main
      with:
        firebase-token: ${{ secrets.FIREBASE_TOKEN }}