summaryrefslogtreecommitdiff
path: root/.github/workflows/gh-pages.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/gh-pages.yml')
-rw-r--r--.github/workflows/gh-pages.yml13
1 files changed, 9 insertions, 4 deletions
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index 1ec9e57..75033f8 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -3,14 +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:
@@ -30,7 +35,7 @@ jobs:
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
- hugo-version: '0.83.0'
+ hugo-version: "${{ github.event.inputs.hugoVersion }}"
- name: Build
run: hugo --buildDrafts --gc --verbose --minify