From eeeb95dba774716f7734d60c446120024094eb8c Mon Sep 17 00:00:00 2001
From: Felix Boerner <ich@felix-boerner.de>
Date: Sun, 25 Apr 2021 17:33:16 +0000
Subject: [PATCH] ci: add build job

---
 .github/workflows/ci.yml |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..b0fec5b
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+'on':
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
+jobs:
+  ci:
+    name: Build Hugo example site and archive output
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check out repository
+        uses: actions/checkout@v2
+
+      - name: Setup Hugo
+        uses: peaceiris/actions-hugo@v2
+
+      - name: Build Hugo example site
+        run: |
+          cd exampleSite
+          hugo --verbose --baseURL= --themesDir=../../
+
+      - name: Archive Hugo example site
+        uses: actions/upload-artifact@v2
+        with:
+          name: hugo-example-site
+          path: exampleSite/public

--
Gitblit v1.10.0