mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-11 12:09:02 +00:00
fix(ci): fix Hugo download to fail fast on HTTP errors
This commit is contained in:
1 parent
bd132d0195
commit
f05cd3a538
1 file changed
+3
-3
@@ -53,10 +53,10 @@ jobs:
|
||||
echo "${HOME}/.local/dart-sass" >> "${GITHUB_PATH}"
|
||||
- name: Install Hugo
|
||||
run: |
|
||||
curl -sLJO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
|
||||
curl -fSL "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" -o hugo.tar.gz
|
||||
mkdir "${HOME}/.local/hugo"
|
||||
tar -C "${HOME}/.local/hugo" -xf "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
|
||||
rm "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
|
||||
tar -C "${HOME}/.local/hugo" -xf hugo.tar.gz
|
||||
rm hugo.tar.gz
|
||||
echo "${HOME}/.local/hugo" >> "${GITHUB_PATH}"
|
||||
- name: Verify installations
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user