summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-03-27 19:39:44 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-03-27 19:39:44 +0530
commitf1296bc29de5a432ff7286cb4ecfd801f1ec25f7 (patch)
tree84d03ab08cdcdfda74e40a000ddbee1ae79fd447 /.github/workflows/build.yml
parent575cc0ca8c4e5904c7ae77e76db812c52e5f8ed1 (diff)
chore: allow setting manual version when required
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6d0d4c6..2da8f8f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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