File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515* .pid
1616* .seed
1717* .pid.lock
18+ * .gz
19+ * .geojson
1820
1921# Directory for instrumented libs generated by jscoverage/JSCover
2022lib-cov
Original file line number Diff line number Diff line change 66 exit 1
77fi
88
9- echo " cloning openbeta-export repository"
10- git clone --depth 1 --branch production https://ob-bot-user:${GITHUB_ACCESS_TOKEN} @github.com/OpenBeta/openbeta-export || exit 1
11- git config user.name " db-export-bot"
12- git config user.email " db-export-bot@noreply"
13- cd ..
14-
159echo " start exporting CRAG data..."
1610yarn export-crags
1711
12+ ZIP_FILE=crags.geojson.gz
13+
14+ tar -czf ${ZIP_FILE} crags.geojson crag-groups.geojson
15+
1816echo " ... finished export. Committing data..."
1917
18+ echo " cloning openbeta-export repository"
19+ git clone --depth 1 --branch production https://ob-export-user:${GITHUB_ACCESS_TOKEN} @github.com/OpenBeta/openbeta-export.git || exit 1
20+
21+ cd openbeta-export
22+ git config user.name " ob-export-user"
23+ git config user.email " db-export-bot@noreply"
24+
25+ mv ../${ZIP_FILE} .
26+
2027git add -A
2128git commit -am " export crag data"
2229git push origin production
You can’t perform that action at this time.
0 commit comments