[+] Deploy script
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
# Build
|
||||
yarn run build
|
||||
|
||||
# Navigate into the build output directory
|
||||
cd dist
|
||||
|
||||
# Deploying to a custom domain
|
||||
echo 'profile.hydev.org' > CNAME
|
||||
|
||||
git init
|
||||
git add -A
|
||||
git commit -m 'deploy'
|
||||
git push -f https://github.com/hykilpikonna/home-page.git master:gh-pages
|
||||
cd ..
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Abort on errors
|
||||
set -e
|
||||
|
||||
# Build
|
||||
yarn run build
|
||||
|
||||
# Navigate into the build output directory
|
||||
cd dist
|
||||
|
||||
# Deploying to a custom domain
|
||||
echo 'profile.hydev.org' > CNAME
|
||||
|
||||
git init
|
||||
git add -A
|
||||
git commit -m 'deploy'
|
||||
git push -f git@github.com:hykilpikonna/home-page.git master:gh-pages
|
||||
cd -
|
||||
Reference in New Issue
Block a user