Website/.forgejo/workflows/deploy.yml
TheClashFruit a5aae6e9df
All checks were successful
Lint Codebase / lint (push) Successful in 1m7s
feat(ci): require lint to complete before deploying
2024-09-01 11:49:31 +02:00

25 lines
537 B
YAML

name: Deploy Website
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
needs: lint
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