Add .gitea/workflows/static-deploy.yaml
This commit is contained in:
parent
331a50573b
commit
fe9e6ea114
1 changed files with 28 additions and 0 deletions
28
.gitea/workflows/static-deploy.yaml
Normal file
28
.gitea/workflows/static-deploy.yaml
Normal 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 }}
|
Loading…
Add table
Reference in a new issue