hugo-tufte/.github/workflows/test-build.yml
loikein 02788d2fe5
Publish example site (via Netlify) (#11)
* modify test CI
* add test ci badge back
* use newest hugo version for test ci
* add netlify.toml
* add netlify badge
2023-05-01 16:49:52 +00:00

24 lines
530 B
YAML

name: Test Build
on: push
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./exampleSite
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build
run: hugo --gc --minify