Sync GH workflows

This commit is contained in:
Aditya Telange 2022-03-27 19:35:36 +05:30
parent d593f3555c
commit 34127c9170
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 16 additions and 5 deletions

View File

@ -7,6 +7,11 @@ on:
- exampleSite
workflow_dispatch:
# manual run
inputs:
hugoVersion:
description: "Hugo Version"
required: false
default: "0.83.0"
jobs:
build:
@ -26,7 +31,7 @@ jobs:
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
hugo-version: "${{ github.event.inputs.hugoVersion }}"
- name: Build
run: hugo --buildDrafts --gc --verbose --minify

View File

@ -3,13 +3,19 @@ name: Build GH-Pages
on:
push:
paths-ignore:
- 'images/**'
- 'LICENSE'
- 'README.md'
- "images/**"
- "LICENSE"
- "README.md"
branches:
- master
- exampleSite
workflow_dispatch:
# manual run
inputs:
hugoVersion:
description: "Hugo Version"
required: false
default: "0.83.0"
jobs:
deploy:
@ -29,7 +35,7 @@ jobs:
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
hugo-version: "${{ github.event.inputs.hugoVersion }}"
- name: Build
run: hugo --buildDrafts --gc --verbose --minify