Skip to content

Commit fcb1403

Browse files
fix deploy
1 parent ade811c commit fcb1403

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ yarn start
5353
### Build
5454

5555
```bash
56-
yarn build
56+
./build.sh
5757
```
5858

5959
### Deploy to Github Pages (https://github.com/Coderockr/coderockr.github.com)
6060
```bash
61-
./gh-pages.sh
61+
./deploy.sh
6262
```

build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
yarn build
3+
cp ./CNAME ./dist/CNAME
4+
cp ./humans.txt ./dist/humans.txt
5+
cp ./crossdomain.xml ./dist/crossdomain.xml
6+
cp ./README.md ./dist/README.md

gh-pages.sh renamed to deploy.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
#!/bin/sh
2-
yarn build
3-
cp ./CNAME ./dist/CNAME
4-
cp ./humans.txt ./dist/humans.txt
5-
cp ./crossdomain.xml ./dist/crossdomain.xml
6-
cp ./README.md ./dist/README.md
7-
git add .
8-
git commit -m "Atualizado em $(date +'%F')"
92
git subtree split --prefix dist -b master # create a local master branch containing the splitted output folder
103
git push -f origin master:master # force the push of the master branch to the remote master branch at origin
114
git branch -D master # delete the local master because you will need it: ref

0 commit comments

Comments
 (0)