7575 - ./.next/cache
7676 - store_artifacts :
7777 path : ~/web_version
78- gh-pages_deployment :
79- docker :
80- - image : node:18-alpine
81- steps :
82- - run : npm install --global npm
83- - run : apk --no-cache add ca-certificates git openssh-client
84- - add_ssh_keys :
85- fingerprints :
86- - ' 86:74:77:4c:90:02:f4:5d:b4:f8:3c:b4:37:c3:c0:25'
87- - checkout
88- - restore_cache :
89- keys :
90- - npm-deps-{{ checksum "package.json" }}-{{ checksum "./bids-validator/package.json" }}-{{ checksum "./bids-validator-web/package.json" }}-v1
91- -
run :
git config --global user.email "[email protected] " 92- - run : git config --global user.name "bids-maintenance"
93- - run : ssh-keyscan github.com >> ~/.ssh/known_hosts
94- - run :
95- name : Create new gh-pages branch without history
96- command : git checkout --orphan gh-pages
97- - run :
98- name : Install bids-validator and bids-validator-web dependencies
99- command : npm install
100- - run :
101- name : Build and export web-validator
102- command : npm run web-export
103- - run :
104- name : Clean and remove bids-validator files
105- command : git reset . && git clean --force -d --exclude bids-validator-web/out
106- - run :
107- name : Move build into legacy directory
108- command : mv bids-validator-web/out/ legacy
109- - run :
110- name : Remove files not related to build
111- command : rm -r bids-validator bids-validator-web node_modules
112- - run :
113- name : Create a nojekyll file (gh-pages specific)
114- command : touch .nojekyll
115- - run : git status
116- - run :
117- name : Commit updates
118- command : git add legacy && git commit --allow-empty --no-verify -m "Circle CI - Generate validator demo with version $CIRCLE_TAG [ci skip]"
119- - run : git push origin gh-pages -f
120- - save_cache :
121- key : npm-deps-{{ checksum "package.json" }}-{{ checksum "./bids-validator/package.json" }}-{{ checksum "./bids-validator-web/package.json" }}-v1
122- paths :
123- - ./node_modules
124- - store_artifacts :
125- path : ~/legacy
12678workflows :
12779 version : 2
12880 build-deploy :
@@ -145,13 +97,3 @@ workflows:
14597 only : /.*/
14698 tags :
14799 only : /.*/
148- - gh-pages_deployment :
149- requires :
150- - test
151- - test_docker
152- - githubPagesTest
153- filters :
154- branches :
155- ignore : /.*/
156- tags :
157- only : /v\d+\.\d+\.\d+$/
0 commit comments