generated from Skynet/deploy_user
parent
0de1f11b29
commit
6d9714c296
1 changed files with 4 additions and 4 deletions
|
@ -15,10 +15,10 @@ jobs:
|
||||||
# Step 2: Install latest Hugo
|
# Step 2: Install latest Hugo
|
||||||
- name: Install Hugo
|
- name: Install Hugo
|
||||||
run: |
|
run: |
|
||||||
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep -Po '"tag_name": "\K[^"]+')
|
sudo apt-get update
|
||||||
wget -q https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-amd64.deb
|
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep -Po '"tag_name": "\K[^"]+' | sed 's/^v//')
|
||||||
tar -xvzf hugo_extended_${HUGO_VERSION}_Linux-amd64.tar.gz
|
wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-amd64.deb
|
||||||
sudo mv hugo /usr/local/bin
|
dpkg -i ./hugo_extended_${HUGO_VERSION}_Linux-amd64.deb
|
||||||
hugo version
|
hugo version
|
||||||
|
|
||||||
# Step 3: Ensure submodules or themes are initialized (only needed if your using github submodules for theme purposes)
|
# Step 3: Ensure submodules or themes are initialized (only needed if your using github submodules for theme purposes)
|
||||||
|
|
Loading…
Add table
Reference in a new issue