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

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 }}