generated from Skynet/deploy_user
This commit is contained in:
parent
90e703e740
commit
854b189fb6
1 changed files with 2 additions and 3 deletions
|
@ -12,13 +12,12 @@ jobs:
|
||||||
# Step 1: Checkout the repository
|
# Step 1: Checkout the repository
|
||||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
|
||||||
# Step 2: Install latest Hugo (im not sure if sudo is allowed here... it should be?)
|
# Step 2: Install latest Hugo
|
||||||
- name: Install Hugo
|
- name: Install Hugo
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
|
||||||
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep -Po '"tag_name": "\K[^"]+')
|
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep -Po '"tag_name": "\K[^"]+')
|
||||||
wget -q https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-amd64.deb
|
wget -q https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-amd64.deb
|
||||||
sudo apt install -y ./hugo_extended_${HUGO_VERSION}_Linux-amd64.deb
|
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