From f54b9533e799090c3d5e17d22b6d1fb95a648a90 Mon Sep 17 00:00:00 2001 From: ctmbl Date: Tue, 24 Oct 2023 11:38:11 +0200 Subject: [PATCH] Add build GH Action --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0668e7c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build HUGO website + +on: + # Runs on pull requests to check that the website is building without errors + pull_request: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + - name: hugo + uses: klakegg/actions-hugo@1.0.0 + with: + source: ./src + target: ./build/blog + env: production