Skip to content

Commit 11258da

Browse files
committed
config fix
1 parent 68c1895 commit 11258da

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

deploy.sh

+28-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
#!/usr/bin/env bash
22

3-
cp -R backstop_data/ src/report
4-
git add src/
5-
git commit -m "deploy static content" --no-verify
6-
git subtree push --prefix src origin gh-pages
7-
./node_modules/.bin/rimraf src/report
8-
git add src/
9-
git commit -m "removed report after deploy" --no-verify
3+
DEST=$1
4+
5+
# Commit
6+
echo "git add ${DEST} --force"
7+
git add ${DEST} --force
8+
9+
echo "git commit -m \"make build\" --no-verify"
10+
git commit -m "make build" --no-verify
11+
12+
# Push to gh-pages
13+
echo "git push --delete origin gh-pages"
14+
git push --delete origin gh-pages
15+
16+
echo "git subtree push --prefix ${DEST} origin gh-pages"
17+
git subtree push --prefix ${DEST} origin gh-pages
18+
19+
# Clean up
20+
echo "git reset --soft HEAD^"
21+
git reset --soft HEAD^
22+
23+
echo "rm -rf ${DEST}"
24+
rm -rf ${DEST}
25+
26+
echo "git reset -- ${DEST}"
27+
git reset -- ${DEST}
28+
29+
echo "git checkout ./${DEST}"
30+
git checkout ./${DEST}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@mate-academy/backstop-config": "*",
2323
"@mate-academy/eslint-config": "*",
2424
"@mate-academy/linthtml-config": "0.0.1",
25-
"@mate-academy/scripts": "^0.3.9",
25+
"@mate-academy/scripts": "^0.3.14",
2626
"@mate-academy/stylelint-config": "0.0.9",
2727
"backstopjs": "^5.0.1",
2828
"eslint": "^5.16.0",

0 commit comments

Comments
 (0)