Skip to content

Commit

Permalink
chore: allow setting manual version when required
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Mar 27, 2022
1 parent 575cc0c commit f1296bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- exampleSite
workflow_dispatch:
# manual run
inputs:
hugoVersion:
description: "Hugo Version"
required: false
default: "0.83.0"

jobs:
build:
Expand All @@ -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 changes: 9 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit f1296bc

Please sign in to comment.