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

github.com/mazgi/hugo-theme-techlog-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-10-07 16:55:39 +0300
committerHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-10-07 19:26:35 +0300
commitacef5a9453d49421512313828d7be03025916d58 (patch)
tree9fcedc40a89f2b62f2c5f5ebcd1be8eadc86450b
parentf5d4c4095c6153fbe26ebf33fce7ac93798830a7 (diff)
Create config.yml for CircleCI.
-rw-r--r--.circleci/config.yml24
-rw-r--r--README.md2
-rw-r--r--example-site/config.toml2
3 files changed, 28 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..f396d54
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,24 @@
+defaults: &defaults
+ working_directory: techlog-simple
+ docker:
+ - image: mazgi/hugo-static-website:hugo-0.49-2018.10.1
+
+version: 2
+jobs:
+ deploy_to_firebase:
+ <<: *defaults
+ steps:
+ - checkout
+ - run: cd example-site && sed -i '1s/publishDir = "public/techlog-simple"\n/' config.toml
+ - run:
+ name: Build Website
+ command: cd example-site && hugo --baseURL="https://${GCLOUD_PROJECT}.firebaseapp.com/techlog-simple" --themesDir="../.."
+ - run:
+ name: Deploy to Firebase
+ command: cd example-site && firebase deploy --project="${GCLOUD_PROJECT}" --token="${FIREBASE_TOKEN}"
+
+workflows:
+ version: 2
+ build_and_deploy:
+ jobs:
+ - deploy_to_firebase
diff --git a/README.md b/README.md
index f40d468..17b2245 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,3 @@
# hugo-theme-techlog-simple
+
+[![CircleCI](https://circleci.com/gh/mazgi/hugo-theme-techlog-simple.svg?style=svg)](https://circleci.com/gh/mazgi/hugo-theme-techlog-simple)
diff --git a/example-site/config.toml b/example-site/config.toml
index 4493274..618ef6c 100644
--- a/example-site/config.toml
+++ b/example-site/config.toml
@@ -1,4 +1,6 @@
baseURL = "http://example.org/"
+relativeURLs = true
+canonifyURLs = true
languageCode = "en-us"
title = "A Hugo theme"
theme = "techlog-simple"