fix: edit文章的文章信息 #42
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 blog | |
on: | |
#监听push操作 | |
push: | |
branches: | |
# master分支,你也可以改成其他分支 | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '18.18.1' | |
- name: Install npm dependencies | |
run: npm install | |
- name: Run build task | |
run: npm run build | |
- name: Deploy to Server | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }} | |
ARGS: '-rltgoDzvO --delete' | |
SOURCE: '.output/' | |
REMOTE_HOST: '81.68.108.130' | |
REMOTE_USER: root | |
TARGET: '/home/blog' # 打包后的 dist 文件夹将放在 | |
# EXCLUDE: "node_modules,.git,.github" |