diff options
Diffstat (limited to '.github/workflows/ci.yml')
-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 |