Skip to content

Merge pull request #61 from razzat008/main #4

Merge pull request #61 from razzat008/main

Merge pull request #61 from razzat008/main #4

Workflow file for this run

name: Build & deploy in VPS
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
cd ~/website
git pull origin main
yarn install
yarn build
if [ $? -ne 0 ]; then
echo "Build failed"
exit 1
fi
pm2 restart .
2 changes: 1 addition & 1 deletion

Check failure on line 30 in .github/workflows/deploy-to-vps.yml

View workflow run for this annotation

GitHub Actions / Build & deploy in VPS

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-to-vps.yml (Line: 30, Col: 1): Unexpected value '2 changes'