Skip to content

Merge pull request #264 from leo-schick/fix-docu #159

Merge pull request #264 from leo-schick/fix-docu

Merge pull request #264 from leo-schick/fix-docu #159

Workflow file for this run

name: Hugo Docs Build - GH Pages
on:
push:
branches:
- main
paths:
- '.github/**'
- 'docs/**'
- '**.md'
- '**.png'
- '**.svg'
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive # Fetch the Docsy theme
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.91.2'
extended: true
- name: Setup Docsy
run: git submodule update --init --recursive && npm install -D --save autoprefixer && npm install -D --save postcss-cli && npm install -D --save postcss
- name: Build Hugo Site
run: hugo
working-directory: ./docs/azure-saas-docs
env:
APPINSIGHTS_CONNECTION_STRING: ${{ secrets.APPINSIGHTS_CONNECTION_STRING }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/azure-saas-docs/public