Skip to content
Snippets Groups Projects
Unverified Commit f1296bc2 authored by Aditya Telange's avatar Aditya Telange
Browse files

chore: allow setting manual version when required

parent 575cc0ca
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment