From 2334be2891491b48742c4d1ba368c5afaf3fa3a7 Mon Sep 17 00:00:00 2001 From: James Ray Date: Tue, 1 Mar 2022 09:14:01 -0500 Subject: [PATCH] add build workflow --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..f76e6b2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Run Build + +# Run action on pull request event +on: [pull_request] + + +jobs: + build: + runs-on: ubuntu-18.04 + steps: + # checkout to the commit that has been pushed + - uses: actions/checkout@v2.4.0 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + # install Hugo + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2.5.0 + with: + hugo-version: 'latest' + extended: true + + # build website + - name: Build + run: hugo --minify