Skip to content

Update 3.bday22.md

Update 3.bday22.md #27

Workflow file for this run

name: deploy via ssh
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '20.5.1'
- name: Install npm dependencies
run: npm install
- name: Run build task
run: npm run build
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: ".output/"
REMOTE_HOST: ${{ secrets.SSH_HOST }}
REMOTE_USER: ${{ secrets.SSH_USER }}
TARGET: ${{ secrets.DEPLOY_DIR }}
EXCLUDE: "/dist/, /node_modules/"
SSH_CMD_ARGS: -o StrictHostKeyChecking=no
SCRIPT_AFTER: |
pm2 restart PersonalPage