Skip to content

Commit

Permalink
Merge pull request #2 from Coder2Mo/g-pages
Browse files Browse the repository at this point in the history
Create deploy.sh
  • Loading branch information
Coder2Mo authored Nov 13, 2023
2 parents c8a8424 + dad5859 commit df973ca
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env sh
# abort on errors
set -e
# build
npm run build
# navigate into the build output directory
cd dist
# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME
git init
git add -A
git commit -m 'deploy'
# if you are deploying to https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git main
# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:<USERNAME>/<REPO>.git main:gh-pages
cd -

0 comments on commit df973ca

Please sign in to comment.