installer hugo via apk et non les binaires
This commit is contained in:
@@ -13,30 +13,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git clone --recurse-submodules https://git.alocoq.fr/alois/CoqBlog.git .
|
git clone --recurse-submodules https://git.alocoq.fr/alois/CoqBlog.git .
|
||||||
|
|
||||||
- name: Debug
|
|
||||||
run: |
|
|
||||||
uname -m
|
|
||||||
uname -a
|
|
||||||
cat /etc/os-release
|
|
||||||
ldd --version 2>&1 || echo "pas de ldd"
|
|
||||||
wget -q https://github.com/gohugoio/hugo/releases/download/v0.147.2/hugo_extended_0.147.2_linux-amd64.tar.gz
|
|
||||||
tar -xzf hugo_extended_0.147.2_linux-amd64.tar.gz hugo
|
|
||||||
ldd hugo || echo "pas de ldd sur hugo"
|
|
||||||
file hugo || echo "pas de file"
|
|
||||||
|
|
||||||
- name: Install Hugo
|
- name: Install Hugo
|
||||||
run: |
|
run: |
|
||||||
ARCH=$(uname -m)
|
apk add --no-cache hugo git
|
||||||
case $ARCH in
|
hugo version
|
||||||
x86_64) HUGO_ARCH="linux-amd64" ;;
|
|
||||||
aarch64) HUGO_ARCH="linux-arm64" ;;
|
|
||||||
*) echo "Architecture non supportée: $ARCH"; exit 1 ;;
|
|
||||||
esac
|
|
||||||
HUGO_VERSION=0.147.2
|
|
||||||
wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_${HUGO_ARCH}.tar.gz
|
|
||||||
tar -xzf hugo_extended_${HUGO_VERSION}_${HUGO_ARCH}.tar.gz hugo
|
|
||||||
mv hugo /usr/local/bin/hugo
|
|
||||||
hugo version /usr/local/bin/hugo
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|||||||
Reference in New Issue
Block a user