mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-22 13:10:40 +00:00
ci: use default branch to test docs build on PR (#37)
This commit is contained in:
parent
01e4e6f7a6
commit
209f86d821
19
.drone.yml
19
.drone.yml
@ -169,6 +169,23 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- mkdir -p exampleSite/themes/hugo-geekblog/
|
- mkdir -p exampleSite/themes/hugo-geekblog/
|
||||||
- curl -sSL https://github.com/thegeeklab/hugo-geekblog/releases/latest/download/hugo-geekblog.tar.gz | tar -xz -C exampleSite/themes/hugo-geekblog/ --strip-components=1
|
- curl -sSL https://github.com/thegeeklab/hugo-geekblog/releases/latest/download/hugo-geekblog.tar.gz | tar -xz -C exampleSite/themes/hugo-geekblog/ --strip-components=1
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/heads/master
|
||||||
|
- refs/tags/**
|
||||||
|
|
||||||
|
- name: assets-master
|
||||||
|
image: node:lts
|
||||||
|
commands:
|
||||||
|
- npm install > /dev/null
|
||||||
|
- npx gulp default
|
||||||
|
- mkdir exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekblog
|
||||||
|
environment:
|
||||||
|
FORCE_COLOR: true
|
||||||
|
NPM_CONFIG_LOGLEVEL: error
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/pull/**
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: thegeeklab/hugo:0.83.1
|
image: thegeeklab/hugo:0.83.1
|
||||||
@ -253,6 +270,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 71586de89a7298276422d89c50ee486183ab60f65111308b070b1777b30c927f
|
hmac: 773432bb466f3c71566f171918419bf0f34335c4bd3d923a005336d4857aaf4c
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user