Skip to content

Commit

Permalink
Install Hugo in GitHub using the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gmantele committed Nov 12, 2024
1 parent 237a664 commit d26de6d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/actions/setup-hugo/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ runs:
- name: Cache Hugo
uses: actions/cache@v3
with:
path: ~/hugo
path: ./hugo-bin
key: ${{ runner.os }}-hugo-${{ inputs.hugo_version }}
- name: Download and extract Hugo
run: |
if [ ! -f ~/hugo ]; then
wget https://github.com/gohugoio/hugo/releases/download/v${{ inputs.hugo_version }}/hugo_${{ inputs.hugo_version }}_Linux-64bit.tar.gz
tar -zxvf hugo_${{ inputs.hugo_version }}_Linux-64bit.tar.gz
mv hugo ~/hugo
fi
make ./hugo-bin/.v${{ inputs.hugo_version }}
shell: bash

0 comments on commit d26de6d

Please sign in to comment.