Skip to content

Commit

Permalink
Use the Linux-64bit binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Selby authored and benmatselby committed Sep 27, 2022
1 parent 7845be0 commit aeb42da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2.0.0

- Switched over to downloading the `Linux-64bit.tar.gz` file. See [this issue](https://github.com/gohugoio/hugo/issues/10331) for more context.

## 1.16.0

- Switched the default branch to `main` from `master`.
Expand Down
7 changes: 4 additions & 3 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ fi
# Downloading of Hugo.
###
echo "Downloading Hugo: ${HUGO_VERSION}${EXTENDED_INFO}"
URL=https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${EXTENDED_URL}${HUGO_VERSION}_Linux-64bit.deb
URL=https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${EXTENDED_URL}${HUGO_VERSION}_Linux-64bit.tar.gz
echo "Using '${URL}' to download Hugo"
curl -sSL "${URL}" > /tmp/hugo.deb && dpkg --force architecture -i /tmp/hugo.deb

curl -sSL "${URL}" > /tmp/hugo.tar.gz
tar -C /tmp -xf /tmp/hugo.tar.gz
mv /tmp/hugo /usr/bin/hugo

###
# Optionally install Go.
Expand Down

0 comments on commit aeb42da

Please sign in to comment.