mirror of
https://github.com/PrivSec-dev/privsec.dev
synced 2024-12-23 13:21:34 -05:00
32 lines
804 B
YAML
32 lines
804 B
YAML
# 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:
|
|
name: public
|
|
path: public/
|