update script to build hugo site
Some checks failed
Hugo / build (push) Failing after 2s

This commit is contained in:
Brooke 2024-05-06 18:31:53 -04:00
parent 5615f04b57
commit c598c84e8e

View file

@ -1,4 +1,4 @@
name: Static Deploy
name: Hugo
on:
push:
@ -7,15 +7,15 @@ on:
jobs:
build:
runs-on: ubuntu-22.04
runs-on: hugo-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Grab packages
run: |
apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y jq rsync
run: apk add rsync openssh-client
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Run build task
run: hugo --minify
- name: Test static page
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
- name: Deploy to Server