Skip to content

update_210518_article_pic #379

update_210518_article_pic

update_210518_article_pic #379

Workflow file for this run

# workflow name
name: Hexo Blog CI
# main branch on push, auto run
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# 切换分支
- name: Checkout
uses: actions/checkout@main
# 使用 node:10
- name: use Node.js 10
uses: actions/setup-node@v1
with:
node-version: 10
- name: npm install
run: |
sudo npm install -g hexo-cli
npm install
- name: Build
run: |
npm run build
- name: Deploy to ecs server
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }}
ARGS: "-rltgoDzvO --delete"
SOURCE: "public"
REMOTE_HOST: ${{ secrets.SSH_HOST }}
REMOTE_USER: "root"
REMOTE_PORT: ${{ secrets.SSH_PORT_OPTION }}
TARGET: "/data/hexo/"