update (some) dependencies #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Svelte site CI | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Executing remote command | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
USERNAME: ${{ secrets.USERNAME }} | |
PORT: ${{ secrets.PORT }} | |
KEY: ${{ secrets.SSH }} | |
script_stop: true | |
script: | | |
cd /var/www/html/docs.faithfulpack.net/ | |
git stash | |
git pull | |
pnpm install | |
pnpm build | |
pm2 restart "DOCS" || pm2 start --name "DOCS" "PORT=5050 node build/" | |