0%

测试自动部署

配置文件记录

ations配置文件实现自动部署

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: CI Blog

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: git(blog) checkout...
uses: actions/checkout@v1
- name: 2. setup nodejs...
uses: actions/setup-node@v1
- name: 3. install hexo-cli... #命令i为install得缩写
run: cd blog && npm i hexo-cli -g && npm i
- name: 4. hexo generate public files...
run: cd blog && hexo clean && hexo g
- name: 5. hexo deploy 'public files' to 'binyutx.github.io' repo...
run: |
git config --global user.name "binyutx"
git config --global user.email "xxxxx@qq.com"
cd blog && hexo d

文章作者:binyu

发布时间:2020年01月17日 - 09:01

原始链接:https://binyutx.github.io/archives/7c9c0741.html

许可协议: 转载请保留原文链接及作者。