mirror of https://github.com/escalate/hugo-split-theme.git

Felix Boerner
25.55.2021 eeeb95dba774716f7734d60c446120024094eb8c
ci: add build job
1 files added
29 ■■■■■ changed files
.github/workflows/ci.yml 29 ●●●●● patch | view | raw | blame | history
.github/workflows/ci.yml
New file
@@ -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