Skip to content

Commit

Permalink
Fetch hugo version from .tool-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMissEm committed Jan 24, 2025
1 parent 0f404b1 commit 90977c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,22 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Hugo Version
id: hugo_version
run: |
HUGO_VERSION=$(cat .tool-versions | grep hugo | cut -d' ' -f2 | cut -d'_' -f2)
echo "HUGO_VERSION=$HUGO_VERSION" >> "$GITHUB_ENV"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.139.4"
hugo-version: ${{ env.HUGO_VERSION }}
extended: true

- name: Build
run: make -C community.hachyderm.io hugo

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hugo extended_0.139.4
node 22

0 comments on commit 90977c3

Please sign in to comment.