Browse Source

修改了博客设置 (#2)

增加了ci规则

增加了分支的ci测试

修改了root路径

Co-authored-by: smally <2907047490@qq.com>
Reviewed-on: #2
pull/4/head
SmallY 9 months ago
parent
commit
845bd64ec0
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      .drone.yml
  2. +1
    -1
      _config.yml

+ 5
- 0
.drone.yml View File

@ -27,6 +27,8 @@ steps:
- apt-get install -y bash python git
- apt-get install -y git-restore-mtime
- /usr/lib/git-core/git-restore-mtime --commit-time --work-tree . --git-dir ./.git
when:
branch: master
- name: build
image: node:latest
@ -53,6 +55,8 @@ steps:
target:
from_secret: target
rm: true
when:
branch: master
# 缓存再build
- name: rebuild-cache
@ -75,6 +79,7 @@ trigger:
branch:
include:
- master
- blog
event:
include:
- push

+ 1
- 1
_config.yml View File

@ -14,7 +14,7 @@ timezone: 'UTC'
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://www.smallyy.cn
root: /usr/share/nginx/html
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:

Loading…
Cancel
Save