From 6a80640dc732ea4c1adc9a2ab5d3b0e829a151af Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Sun, 5 Mar 2023 09:23:54 +0100 Subject: [PATCH] Added Zola check Signed-off-by: Alexander Borsuk --- .github/workflows/check.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..3bdb1aa1 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,22 @@ +name: Check site validity + +env: + ZOLA_VERSION: 0.17.1 + +on: + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + environment: production + name: Check Zola build + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Build with Zola + run: | + wget -O zola.tar.gz -c https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz + tar -zxvf zola.tar.gz + ./zola build