add bday21 article and update links #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |