From de2c94dc130fcc924c51bd6d5cbf7372ac450fb4 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 29 Jun 2022 11:48:10 +0200 Subject: [PATCH] Add CI to new pull requests Run a simple hugo build step on every pull request to ensure the website remains healthy. --- .github/workflows/CI.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..0d2ea82 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,21 @@ +name: Check hugo build + +'on': + pull_request: + branches: + - main + +jobs: + build-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + submodules: true + ssh-key: '' + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + + - name: Build + run: hugo --minify