Created
January 26, 2020 02:38
-
-
Save evanhalley/4bd17ebc9fa8df26ede5efca2d420381 to your computer and use it in GitHub Desktop.
Building and deploying a Hugo generated static HTML site to Firebase hosting.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Hugo | |
uses: peaceiris/[email protected] | |
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