This commit is contained in:
parent
e12c8104ec
commit
750e4311c0
1 changed files with 17 additions and 16 deletions
|
@ -1,25 +1,26 @@
|
||||||
name: Static Deploy
|
name: Static Deploy
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: "recursive"
|
||||||
- name: Grab packages
|
- name: Grab packages
|
||||||
run: |
|
run: |
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install --no-install-recommends --no-install-suggests -y jq rsync
|
apt-get install --no-install-recommends --no-install-suggests -y jq rsync
|
||||||
- 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
|
||||||
uses: easingthemes/ssh-deploy@main
|
uses: easingthemes/ssh-deploy@main
|
||||||
env:
|
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/"
|
||||||
|
|
Loading…
Add table
Reference in a new issue