Skip to content

Merge pull request #1099 from ninjarobot/msi-fedidcred #385

Merge pull request #1099 from ninjarobot/msi-fedidcred

Merge pull request #1099 from ninjarobot/msi-fedidcred #385

Workflow file for this run

name: gh-pages
on:
push:
branches: [master]
paths:
- 'docs/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@v2
with:
ref: master # Pull the master branch
submodules: true # Fetch Hugo themes as well (they're in sub-modules)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.68.3"
# Builds using hugo; outputs to ./public by default, but ./ is ./docs here,
# because of the working-directory setting, so the output will be in ./docs/public
# this is then used for `publish_dir` in the Deploy step below
- name: Build
working-directory: ./docs
run: hugo --minify
- name: Deploy # Pushes output of the build to the GH Pages branch
uses: peaceiris/actions-gh-pages@v3
with:
commit_message: ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public