diff options
author | Felix Boerner <ich@felix-boerner.de> | 2021-04-25 14:55:27 +0300 |
---|---|---|
committer | Felix Boerner <ich@felix-boerner.de> | 2021-04-25 20:33:16 +0300 |
commit | eeeb95dba774716f7734d60c446120024094eb8c (patch) | |
tree | 9b7a55ce1feced5451cc9c7106f3f7cd7e51810c | |
parent | e8bab28a19203618b77e458cdc06ab182f1dfd68 (diff) |
ci: add build job
-rw-r--r-- | .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 |