Skip to content

Hugo build and Firebase Deploy

Actions
Builds the site using Hugo, and deploy it to Firebase Hosting
1.1.0
Latest
Star (11)

GitHub Action - Hugo and Firebase

This GitHub action build a Hugo site, and uploads it to Firebase Hosting

  • Hugo is a popular static-site generator, that allows you to create a template-based site, and your content is written in Markdown
  • Firebase hosting is a cheap option to host your static sites (it has nice things, as a CDN and free HTTPs certs). It's not even needed, you can get the same with GitHub Pages

It needs a Firebase token. You can obtain it installing firebase-tools and doing firebase login-ci.

As the Firebase token is sensitive info, you must save it in a GitHub secret

A simple workload using this action would be something like:

on: [push]
name: Publish blog
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
      with:
        submodules: true
    - uses: pulimento/github-action-hugo-deploy-to-firebase@master
      with:
        firebase-token: ${{ secrets.secret_firebase_token }}
        alias: ${{ some_alias }} // OPTIONAL

Happy hacking!

Hugo build and Firebase Deploy is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Builds the site using Hugo, and deploy it to Firebase Hosting
1.1.0
Latest

Hugo build and Firebase Deploy is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.