ci: use default branch to test docs build on PR (#37)

This commit is contained in:
Robert Kaussow 2021-05-23 15:31:52 +02:00 committed by GitHub
parent 01e4e6f7a6
commit 209f86d821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
... ...