-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdeploy.sh
42 lines (23 loc) · 818 Bytes
/
deploy.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -e
rm -rf docs
git fetch origin
git log -1
git config user.email "[email protected]"
git config user.name "Kevin Harrington"
git config pull.rebase false
git config core.mergeoptions --no-edit
git checkout source
git update-index --assume-unchanged ./.github/workflows/publish.yml
git merge origin/deploy --strategy-option ours --no-ff --no-edit --allow-unrelated-histories -m "Auto-merge from CI "
git checkout deploy
git pull --allow-unrelated-histories
git merge source --strategy-option ours --no-ff --no-edit --allow-unrelated-histories -m "Auto-merge from CI "
git pull . source --allow-unrelated-histories
bash compile.sh
set +e
echo "commonwealthrobotics.com" >./docs/CNAME
git add --all .
git commit -a -m"Update for deploy"
git push --force
git checkout source