Website/.forgejo/workflows/deploy.yml
TheClashFruit 020bbd7a43
All checks were successful
Deploy Website / deploy (push) Successful in 1m32s
Lint Codebase / lint (push) Successful in 1m5s
fix(ci): fix deploy
2024-08-30 13:58:16 +02:00

24 lines
521 B
YAML

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
~/.local/share/pnpm/pnpm install
~/.local/share/pnpm/pnpm build
sudo systemctl restart crss.service