Skip to content

chore: bump actions/checkout version to v4 #1

chore: bump actions/checkout version to v4

chore: bump actions/checkout version to v4 #1

Workflow file for this run

name: Deployment
on:
push:
branches: main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: SSH Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd gamying.online/
git pull
npm install
npm run build
pm2 restart gamying-online