Migrate from Netlify to Firebase

This commit is contained in:
Katie McLaughlin 2022-10-21 10:10:38 -07:00
parent a002f84cbe
commit 03feedf897
3 changed files with 39 additions and 16 deletions

5
.firebaserc Normal file
View file

@ -0,0 +1,5 @@
{
"projects": {
"default": "beeware-org"
}
}

View file

@ -3,8 +3,8 @@ on:
pull_request:
jobs:
build:
name: Build site
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@ -20,4 +20,12 @@ jobs:
- name: Build site
run: |
lektor plugins reinstall
lektor build --no-prune
lektor build --no-prune -O output
# Generated from 'firebase init hosting'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BEEWARE_ORG }}'
projectId: beeware-org

10
firebase.json Normal file
View file

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