Skip to content

Commit dad5859

Browse files
authored
Create deploy.sh
1 parent c8a8424 commit dad5859

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/deploy.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env sh
2+
# abort on errors
3+
set -e
4+
# build
5+
npm run build
6+
# navigate into the build output directory
7+
cd dist
8+
# if you are deploying to a custom domain
9+
# echo 'www.example.com' > CNAME
10+
git init
11+
git add -A
12+
git commit -m 'deploy'
13+
# if you are deploying to https://<USERNAME>.github.io
14+
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git main
15+
# if you are deploying to https://<USERNAME>.github.io/<REPO>
16+
git push -f [email protected]:<USERNAME>/<REPO>.git main:gh-pages
17+
cd -

0 commit comments

Comments
 (0)