2022-07-19 07:47:08 -04:00
|
|
|
# This file was auto-generated by the Firebase CLI
|
|
|
|
# https://github.com/firebase/firebase-tools
|
|
|
|
|
|
|
|
name: Build Hugo site on PR
|
|
|
|
'on': pull_request
|
|
|
|
jobs:
|
|
|
|
Build_Hugo_Site:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
|
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
|
|
|
|
|
|
#- name: Fecth External Blog
|
|
|
|
# run: ./external-blogs.sh
|
|
|
|
|
|
|
|
- name: Hugo setup
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
|
|
|
hugo-version: 'latest'
|
|
|
|
|
|
|
|
- name: Build Hugo site
|
|
|
|
run: hugo --minify
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2022-07-19 07:55:21 -04:00
|
|
|
name: hugo
|
2022-07-19 08:02:07 -04:00
|
|
|
path: .
|