weibo_video_download #378
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
# 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/" |