Skip to content

Commit

Permalink
Adding buildcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Jun 10, 2024
1 parent 034ffb4 commit 2611d63
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/buildcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Standard Build Check

on: [push, pull_request]

jobs:
docgen:
name: Documentation Generation
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install hugo
env:
HUGO_VER : 0.103.1
run: |
curl -LO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VER}/hugo_${HUGO_VER}_linux-amd64.deb
sudo dpkg -i hugo_${HUGO_VER}_linux-amd64.deb
- name: Make docs
run: |
hugo -s ./docs-gen
- name: Deploy docs
# Only deploy docs if this was a push to master
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
commit-message: Auto-deploy docs built from commit ${{ github.sha }}

0 comments on commit 2611d63

Please sign in to comment.