Skip to content

Instantly share code, notes, and snippets.

@evanhalley
Created January 26, 2020 02:38
Show Gist options
  • Save evanhalley/4bd17ebc9fa8df26ede5efca2d420381 to your computer and use it in GitHub Desktop.
Save evanhalley/4bd17ebc9fa8df26ede5efca2d420381 to your computer and use it in GitHub Desktop.
Building and deploying a Hugo generated static HTML site to Firebase hosting.
name: Build & deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.2.0
with:
hugo-version: '0.63.1'
- name: Build with Hugo
run: hugo --gc --minify --cleanDestinationDir
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment