Skip to content

Merge pull request #31 from PrestonHager/site-patch #26

Merge pull request #31 from PrestonHager/site-patch

Merge pull request #31 from PrestonHager/site-patch #26

Workflow file for this run

name: github pages
on:
push:
branches:
- master # Set a branch to deploy
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
# extended: true
- name: Build
run: cd exampleSite; hugo --gc -t ../.. -b https://sbruder.github.io/spectral/ --cleanDestinationDir
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./exampleSite/public