Skip to content

Commit

Permalink
Merge pull request #207 from Azure/fixdocsbuild
Browse files Browse the repository at this point in the history
revert docs workflow delete
  • Loading branch information
landonpierce committed Mar 13, 2023
2 parents f2507f3 + 78aa2a8 commit 0e57825
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/docs-build.yml
@@ -0,0 +1,43 @@
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

0 comments on commit 0e57825

Please sign in to comment.