1
0
Fork 0
forked from CRSS/Website

feat(ci): add deploy action

This commit is contained in:
TheClashFruit 2024-08-30 13:08:38 +02:00
parent 24ff2d39b7
commit cb11246c1e
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204

View file

@ -0,0 +1,23 @@
name: Deploy Website
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy Over SSH
uses: https://github.com/nekiro/ssh-job@main
with:
host: ${{ secrets.HOST }}
user: crss
password: ${{ secrets.DEPLOY_PASSWORD }}
command: |
cd ~/crss
git pull
pnpm install
pnpm build
sudo systemctl restart crss.service