mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-22 17:15:07 +01:00
chore: allow setting manual version when required
This commit is contained in:
parent
575cc0ca8c
commit
f1296bc29d
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -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: '0.83.0'
|
||||
hugo-version: "${{ github.event.inputs.hugoVersion }}"
|
||||
|
||||
- name: Build
|
||||
run: hugo --buildDrafts --gc --verbose --minify
|
||||
|
13
.github/workflows/gh-pages.yml
vendored
13
.github/workflows/gh-pages.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user