From 2611d635a794fb5930b831584092b35bc9ded84b Mon Sep 17 00:00:00 2001 From: Erik Jaegervall Date: Mon, 10 Jun 2024 14:32:15 +0200 Subject: [PATCH] Adding buildcheck --- .github/workflows/buildcheck.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/buildcheck.yml diff --git a/.github/workflows/buildcheck.yml b/.github/workflows/buildcheck.yml new file mode 100644 index 0000000..e45b068 --- /dev/null +++ b/.github/workflows/buildcheck.yml @@ -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 }}