Skip to content
This repository was archived by the owner on Jun 1, 2020. It is now read-only.

Commit e23ac4f

Browse files
committed
Add automatic gh-pages updates through circle-ci
Rebuilds gh-pages every time a release is created. Releases are identified by a tag starting with `v`.
1 parent 0791d3a commit e23ac4f

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.circleci/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,30 @@ jobs:
4040
- run:
4141
name: check if building works
4242
command: yarn build
43+
deploy_gh_pages:
44+
<<: *defaults
45+
steps:
46+
- checkout
47+
- install_js
48+
- run: cd example
49+
- install_js
50+
- run: yarn predeploy
51+
- add_ssh_keys:
52+
fingerprints:
53+
- 'd8:e5:d2:27:83:c3:fe:44:15:7a:40:89:5c:5d:ac:29'
54+
- run: yarn deploy
4355

4456
workflows:
4557
version: 2
4658
pipeline:
4759
jobs:
4860
- test_unit
4961
- build
62+
gh_pages:
63+
jobs:
64+
- deploy_gh_pages:
65+
filters:
66+
branches:
67+
ignore: /.*/
68+
tags:
69+
only: /v.*/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Project Link: [https://cybertec-postgresql.github.io/rjsf-material-ui](https://c
143143
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
144144

145145
[build-shield]: https://img.shields.io/circleci/build/github/cybertec-postgresql/rjsf-material-ui.svg?style=flat-square&token=a58b0890f96bff2b53eef0f4d9c9e5d16eec2200
146-
[build-url]: #
146+
[build-url]: https://circleci.com/gh/cybertec-postgresql/rjsf-material-ui
147147
[contributors-shield]: https://img.shields.io/badge/contributors-1-orange.svg?style=flat-square
148148
[contributors-url]: https://github.com/cybertec-postgresql/rjsf-material-ui/graphs/contributors
149149
[license-shield]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "parcel build src/index.html --public-url .",
99
"clean": "rimraf dist",
1010
"predeploy": "run-s clean build",
11-
"deploy": "gh-pages -d dist"
11+
"deploy": "gh-pages -d dist -m '[skip ci] Update' -u 'CircleCI <lorenz.henk@cybertec.at>'"
1212
},
1313
"dependencies": {
1414
"@material-ui/styles": "^4.1.2",

0 commit comments

Comments
 (0)