Skip to content

Commit

Permalink
add workflow to test PR builds fine
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Jan 27, 2021
1 parent 2f06f5e commit 3c3888f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build

on:
pull_request:
branches:
- master
- exampleSite
workflow_dispatch:
# manual run

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
ref: exampleSite

- name: Get Theme
run: git submodule update --init --recursive

- name: Update theme to Latest commit
run: git submodule update --remote --merge

- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'

- name: Build
run: hugo --buildDrafts --gc --verbose --minify

0 comments on commit 3c3888f

Please sign in to comment.