Configure firebase hosting

This commit is contained in:
schmelczerandras 2020-09-21 16:16:55 +02:00
parent bff374c580
commit c5f3d551c7
4 changed files with 37 additions and 0 deletions

5
.firebaserc Normal file
View file

@ -0,0 +1,5 @@
{
"projects": {
"default": "schmelczer-dev"
}
}

21
.github/workflows/main.yaml vendored Normal file
View 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
View file

@ -2,3 +2,4 @@ dist
node_modules node_modules
package-lock.json package-lock.json
.vscode .vscode
.firebase

10
firebase.json Normal file
View file

@ -0,0 +1,10 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}