Configure firebase hosting
This commit is contained in:
parent
bff374c580
commit
c5f3d551c7
4 changed files with 37 additions and 0 deletions
5
.firebaserc
Normal file
5
.firebaserc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"projects": {
|
||||
"default": "schmelczer-dev"
|
||||
}
|
||||
}
|
||||
21
.github/workflows/main.yaml
vendored
Normal file
21
.github/workflows/main.yaml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: Deploy site
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
firebase-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout current branch with lfs
|
||||
uses: actions/checkout@master
|
||||
- name: Build site
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
- name: Deploy html
|
||||
uses: w9jds/firebase-action@master
|
||||
with:
|
||||
args: deploy --only hosting --project schmelczer-dev
|
||||
env:
|
||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@ dist
|
|||
node_modules
|
||||
package-lock.json
|
||||
.vscode
|
||||
.firebase
|
||||
|
|
|
|||
10
firebase.json
Normal file
10
firebase.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"hosting": {
|
||||
"public": "dist",
|
||||
"ignore": [
|
||||
"firebase.json",
|
||||
"**/.*",
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue