Skip to content
Simon Dalvai edited this page Dec 16, 2021 · 1 revision

Example for a hugo website

This workflow gets triggered on push and pull requests on the development branch and runs hugo

name: CI

on: 
  push:
    branches: [development]
  pull_request:
    branches: [development]


  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: clone into repo
        uses: actions/checkout@v2

      - name: install hugo
        run: sudo apt-get install hugo

      - name: setup hugo
        run: hugo -s src -d ../target
Clone this wiki locally