blob: 4fead7ad043225d9e904b65c609c4369eec869fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
orbs:
hugo: circleci/hugo@0
node: circleci/node@1.1
version: 2.1
jobs:
test:
executor:
name: node/default
tag: '13.6.0'
steps:
- checkout
- node/with-cache:
steps:
- run: yarn
- run: yarn build
build:
docker:
- image: cibuilds/hugo:latest
working_directory: ~/hugo-theme-chunky-poster
steps:
- checkout
- hugo/hugo-build:
source: exampleSite
extra-flags: '--themesDir ../.. -t "hugo-theme-chunky-poster" --baseURL "https://hugo-theme-chunky-poster.netlify.com"'
- persist_to_workspace:
root: .
paths:
- exampleSite/public
- netlify.toml
deploy:
executor:
name: node/default
tag: '13.1.0'
working_directory: ~/site
steps:
- attach_workspace:
at: ~/site
- run: npm i netlify-cli
- run: ./node_modules/.bin/netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod --message "Deploy via Circle CI."
workflows:
main:
jobs:
- test
- build
- deploy:
filters:
branches:
only: master
requires:
- build
|