Migrate from Netlify to Firebase
This commit is contained in:
parent
a002f84cbe
commit
03feedf897
3 changed files with 39 additions and 16 deletions
5
.firebaserc
Normal file
5
.firebaserc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"projects": {
|
||||
"default": "beeware-org"
|
||||
}
|
||||
}
|
||||
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
|
@ -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
10
firebase.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"hosting": {
|
||||
"public": "output",
|
||||
"ignore": [
|
||||
"firebase.json",
|
||||
"**/.*",
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue