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: on:
push: push:
@ -7,15 +7,15 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-22.04 runs-on: hugo-latest
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 --no-install-recommends --no-install-suggests -y jq rsync with:
submodules: 'true'
- name: Run build task
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
@ -26,4 +26,4 @@ jobs:
SOURCE: "public/" SOURCE: "public/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }} REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }} TARGET: ${{ secrets.REMOTE_TARGET }}