-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.stage.sh
More file actions
28 lines (20 loc) Β· 962 Bytes
/
build.stage.sh
File metadata and controls
28 lines (20 loc) Β· 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
eval "$(ssh-agent -s)"
cd /home || return
ssh-add /home/vizabi_tools_deploy_ssh
git config --global user.email "dev@gapminder.org"
git config --global user.name "gapminderdeploy"
# BUILD: Tools Page --------------------------------------------
git clone git@github.com:Gapminder/tools-page.git -b main
cd tools-page || return
npm cache clean -f
echo && echo π $PWD && echo "π rm -rf node_modules/"
rm -rf node_modules/ && echo "β
removed node_modules"
echo && echo π $PWD && echo "π git pull"
git pull origin main && echo "β
git pull done"
echo && echo π $PWD && echo "π npm install"
npm i --quiet --depth 0 --unsafe-perm && echo "β
npm install done"
echo && echo π $PWD && echo "π BASE=/ npm run build"
BASE=/ npm run build && echo "β
Tools page build done"
echo && echo "π run visual testing via a github action"
gh workflow run manual-percy-toolspage.yml -f env=stage -R Gapminder/visual-tests