From b2c59dea3ba9d2d14ef557095b4beab574297b53 Mon Sep 17 00:00:00 2001 From: Max Brauer Date: Fri, 27 Dec 2024 00:34:39 +0100 Subject: [PATCH] CI: add job to test build for all PR --- .github/workflows/pr.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..579cdec --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,21 @@ +name: Test PR +on: + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: build site + run: chmod +x build.sh && ./build.sh + + - name: 'Build Zola' + uses: shalzz/zola-deploy-action@master + env: + BUILD_DIR: . + BUILD_FLAGS: --output-dir publish --base-url https://mabron.de/ + BUILD_ONLY: true