summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Boerner <ich@felix-boerner.de>2021-04-25 13:55:27 +0200
committerFelix Boerner <ich@felix-boerner.de>2021-04-25 19:33:16 +0200
commiteeeb95dba774716f7734d60c446120024094eb8c (patch)
tree9b7a55ce1feced5451cc9c7106f3f7cd7e51810c
parente8bab28a19203618b77e458cdc06ab182f1dfd68 (diff)
ci: add build job
-rw-r--r--.github/workflows/ci.yml29
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