Add .gitea/workflows/static-deploy.yaml

This commit is contained in:
brooke 2024-03-21 02:57:38 +00:00
parent 331a50573b
commit fe9e6ea114

View file

@ -0,0 +1,28 @@
name: Static Deploy
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
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
- 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 }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "public/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}