recursive
Some checks failed
Hugo / build (push) Failing after 15s

This commit is contained in:
Brooke 2024-03-09 17:25:56 -05:00
parent 1d5866bc2e
commit 51cbf07594

View file

@ -1,25 +1,21 @@
name: Hugo name: Hugo
on: [push] on:
push:
branches:
- main
jobs: jobs:
build: build:
runs-on: hugo-latest
runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Grab packages - name: Grab packages
run: | run: apk add rsync openssh-client
apt-get update && \ - uses: actions/checkout@v4
apt-get install -y jq rsync tar wget && \ with:
wget https://github.com/gohugoio/hugo/releases/download/v0.123.6/hugo_extended_0.123.6_linux-amd64.tar.gz && \ submodules: 'true'
tar -xzvf hugo_extended_0.123.6_linux-amd64.tar.gz && \
chmod +x hugo
- name: Run build task - name: Run build task
run: ./hugo --minify --logLevel info run: hugo --minify
- name: Test static page - name: Test static page
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
- name: Deploy to Server - name: Deploy to Server