update deploy
Some checks failed
/ build (push) Failing after 17s

This commit is contained in:
Brooke 2024-03-09 17:22:12 -05:00
parent 600679557e
commit 6ab03b4e00

View file

@ -1,30 +1,26 @@
name: Hugo ame: 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 - name: Grab packages
with: run: apk add rsync openssh-client
submodules: 'recursive' - uses: actions/checkout@v4
- name: Grab packages with:
run: | submodules: 'recursive'
apt-get update && \ - name: Run build task
apt-get install -y jq rsync tar wget && \ run: hugo --minify
wget https://github.com/gohugoio/hugo/releases/download/v0.123.6/hugo_extended_0.123.6_linux-amd64.tar.gz && \ - name: Test static page
tar -xzvf hugo_extended_0.123.6_linux-amd64.tar.gz && \ run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
chmod +x hugo - name: Deploy to Server
- name: Run build task uses: easingthemes/ssh-deploy@main
run: ./hugo --minify --logLevel info env:
- name: Test static page
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete" ARGS: "-rlgoDzvc -i --delete"
SOURCE: "public/" SOURCE: "public/"