Skip to content

Commit 86aa405

Browse files
authored
Merge pull request #74 from bovem/drafts
Updated GitHub Workflow
2 parents 456f33b + ab49807 commit 86aa405

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/main.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
hugoVersion:
1515
description: "Hugo Version"
1616
required: false
17-
default: "0.97.1"
17+
default: "0.125.7"
1818

1919
# Allow one concurrent deployment
2020
concurrency:
@@ -37,30 +37,27 @@ jobs:
3737
build:
3838
runs-on: ubuntu-latest
3939
env:
40-
HUGO_VERSION: "0.97.1"
40+
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.125.7' }}
4141
steps:
42-
- name: Check version
43-
if: ${{ github.event.inputs.hugoVersion }}
44-
run: export HUGO_VERSION="${{ github.event.inputs.hugoVersion }}"
4542
- name: Install Hugo CLI
4643
run: |
4744
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.deb \
4845
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
4946
- name: Checkout
50-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
5148
with:
5249
ref: gh-pages
5350
- name: Setup Pages
5451
id: pages
55-
uses: actions/configure-pages@v1
52+
uses: actions/configure-pages@v5
5653
- name: Get Theme
5754
run: git submodule update --init --recursive
5855
- name: Update theme to Latest commit
5956
run: git submodule update --remote --merge
6057
- name: Build with Hugo
6158
run: |
6259
hugo \
63-
--gc --verbose \
60+
--buildDrafts --gc \
6461
--baseURL ${{ steps.pages.outputs.base_url }}
6562
- name: Upload artifact
6663
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)