Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/puresyntax71/hugo-theme-chunky-poster.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuresyntax71 <34715246+puresyntax71@users.noreply.github.com>2019-12-18 10:11:23 +0300
committerpuresyntax71 <34715246+puresyntax71@users.noreply.github.com>2019-12-18 12:03:23 +0300
commit26751eb9ee4906d1c2e9fd71a432ed672ba5bedb (patch)
treeae02ee3abd1796c8d33d6ad5b8dd4be5b41e8a67 /.circleci
parent600e37b5f934770c2b6bd2cff2d5d35d9a6ac72c (diff)
Update configuration for circleci.
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml37
1 files changed, 35 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index dec8e6f..871c194 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,8 +1,41 @@
orbs:
hugo: circleci/hugo@0
+ node: circleci/node@1.1
version: 2.1
+
+jobs:
+ 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:
- - hugo/build:
- source: exampleSite
+ - build
+ - deploy:
+ filters:
+ branches:
+ only: develop
+ requires:
+ - build