Skip to content

Merge pull request #246 from 2077-Collective/feat/newsletter #25

Merge pull request #246 from 2077-Collective/feat/newsletter

Merge pull request #246 from 2077-Collective/feat/newsletter #25

Workflow file for this run

name: Deploy Research Website
on:
push:
branches:
- main
jobs:
deploy:
environment:
name: production
concurrency:
group: production
cancel-in-progress: false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to VPS
uses: appleboy/ssh-action@v1.2.0
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }}
timeout: 30s
script: |
if [ ! -f /home/ndu/deploy.sh ]; then
echo "Error: deploy.sh not found"
exit 1
fi
chmod +x /home/ndu/deploy.sh
sudo /home/ndu/deploy.sh || {
echo "Deployment failed"
exit 1
}