Skip to content

fix: add bun and pm2 path #17

fix: add bun and pm2 path

fix: add bun and pm2 path #17

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
- documentation
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to VPS via SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
port: ${{ secrets.SERVER_PORT }}
script: |
EXPORT PATH=$PATH:/root/.bun/bin/bun:/root/.bun/bin/pm2
cd /opt/website/
git pull origin {{ github.ref_name }}
bun run build
pm2 restart website