Skip to content

fix: server/api/github/commit/index.post.ts #48

fix: server/api/github/commit/index.post.ts

fix: server/api/github/commit/index.post.ts #48

Workflow file for this run

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"