mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2025-04-20 10:24:02 +08:00
chore: update drone yml format
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
9fbaa3f45b
commit
a82426be2b
37
.drone.yml
37
.drone.yml
@ -1,21 +1,26 @@
|
|||||||
pipeline:
|
kind: pipeline
|
||||||
jekyll-build:
|
type: docker
|
||||||
image: jekyll/jekyll:4.2.2
|
name: default
|
||||||
commands:
|
|
||||||
- touch Gemfile.lock
|
|
||||||
- chmod a+w Gemfile.lock
|
|
||||||
- chown -R jekyll:jekyll /drone
|
|
||||||
- gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
|
|
||||||
- bundle config mirror.https://rubygems.org https://mirrors.tuna.tsinghua.edu.cn/rubygems
|
|
||||||
- bundle install
|
|
||||||
- bundle exec jekyll build
|
|
||||||
|
|
||||||
deploy-site:
|
steps:
|
||||||
image: drillster/drone-rsync
|
- name: jekyll-build
|
||||||
|
image: jekyll/jekyll:4.2.2
|
||||||
|
commands:
|
||||||
|
- touch Gemfile.lock
|
||||||
|
- chmod a+w Gemfile.lock
|
||||||
|
- chown -R jekyll:jekyll /drone
|
||||||
|
- gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
|
||||||
|
- bundle config mirror.https://rubygems.org https://mirrors.tuna.tsinghua.edu.cn/rubygems
|
||||||
|
- bundle install
|
||||||
|
- bundle exec jekyll build
|
||||||
|
|
||||||
|
- name: deploy-site
|
||||||
|
image: drillster/drone-rsync
|
||||||
|
settings:
|
||||||
source: _site/*
|
source: _site/*
|
||||||
target: ~/docs.hmcl.net
|
target: ~/docs.hmcl.net
|
||||||
recursive: true
|
recursive: true
|
||||||
delete: true
|
delete: true
|
||||||
when:
|
when:
|
||||||
branch: [master]
|
branch: [master]
|
||||||
event: [push]
|
event: [push]
|
||||||
|
Loading…
Reference in New Issue
Block a user