DEV Community

Rossano D'Angelo
Rossano D'Angelo

Posted on

Deploy Hugo website to Firebase

My Workflow

Filename deploy.yml, action name Deploy.
This action is triggered when I merge code to the master (main) branch and there are three steps: setup environment for Hugo framework, build the code and deploy. The deployment on Firebase is quite easy using an authorisation token provided by Firebase itself.

Submission Category:

DIY Deployments

Yaml File or Link to Code

GitHub logo rossanodan / rossanodan

A blog by Rossano D'Angelo

Lumen
Lumen

A constantly evolving and thoughtful architecture for creating new static blogs

Table of contents

Features

Web Performance Tests

Quick Start

Create a Gatsby site

Use the Gatsby CLI to create a new site, specifying the Lumen starter.

# Create a new Gatsby site using the Lumen starter
gatsby new blog https://github.com/alxshelepenok/gatsby-starter-lumen
Enter fullscreen mode Exit fullscreen mode

Start Developing

Navigate into your new site’s directory and start it up.

cd blog
gatsby develop
Enter fullscreen mode Exit fullscreen mode

Open the source code and start editing!

Your site is now running at http://localhost:8000!

Note…

Link to the Action https://github.com/rossanodan/rossanodan/blob/master/.github/workflows/deploy.yml

Additional Resources / Info

https://gohugo.io/
https://firebase.google.com/

Discussion (0)