Skip to content

Commit

Permalink
ci: use github action peaceiris/actions-hugo to install hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
tomowang committed Apr 29, 2024
1 parent a012d53 commit 7a682e9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ jobs:
# Build job
build:
runs-on: ubuntu-22.04
env:
HUGO_VERSION: 0.123.6
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true

- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 7a682e9

Please sign in to comment.