-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathfirebase-deploy.sh
39 lines (29 loc) · 1.09 KB
/
firebase-deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# NOTE: wkande, Sept 2022
# Use this script to deploy the site manually from
# the local bracnh main. Be sure to pull down the
# latest code form main.
#
# This script must be run from the project root.
#!/usr/bin/env sh
# abort on errors
set -e
# build the docs
npm run docs:build
# navigate to the build output directory
cd docs/.vitepress/dist
# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME
# Use this section if you want to push to a depoyment branch.
# api3dao/vitepress-docs uses the main branch as default.
# git init must start with a main branch so firebase-pages will
# "hang" off of it.
# git init --initial-branch=main
# git add -A
# git commit -m 'Deploying a locally built /dist folder to main:firebase-pages as its own commit history.'
# if you are deploying to https://<USERNAME>.github.io
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git main
# If you are deploying to https://<USERNAME>.github.io/<REPO>
# NEVER push to main, use main:firebase-pages.
# git push -f [email protected]:wkande/vitepress-docs.git main:firebase-pages
cd -
firebase deploy