Merge pull request #276 from fperez2511/patch-1 #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |