Skip to content

Commit 7c0af37

Browse files
committed
update
1 parent 8ae3ce1 commit 7c0af37

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.circleci/config.yml

+24
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,26 @@ jobs:
9797
- run: docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
9898
- run: make docker-push DOCKER_IMAGE_TAG=$CIRCLE_TAG
9999

100+
docs:
101+
docker:
102+
- image: cibuilds/hugo:latest
103+
working_directory: ~/hugo
104+
steps:
105+
- run: apk update && apk add git
106+
- checkout
107+
- run:
108+
name: Deploy to GitHub Pages
109+
command: |
110+
cd website
111+
hugo -v
112+
cd public
113+
git init
114+
git config --global user.email "[email protected]"
115+
git config --global user.name "AdrienF"
116+
git add .
117+
git commit -m "Deploy from CI"
118+
git push --force --quiet "https://${GITHUB_TOKEN}@github.com/adrien-f/thanos.git" master:gh-pages
119+
100120
workflows:
101121
version: 2
102122
thanos:
@@ -128,3 +148,7 @@ workflows:
128148
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
129149
branches:
130150
ignore: /.*/
151+
- docs:
152+
filters:
153+
branches:
154+
only: feature/docs-hugo

0 commit comments

Comments
 (0)