Skip to content

Commit

Permalink
Deploy to firebase (yewstack#1481)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored and teymour-aldridge committed Sep 1, 2020
1 parent 5e610dc commit d3e0ae7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "yew-rs"
}
}
9 changes: 5 additions & 4 deletions .github/workflows/autopublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
run: cd website && yarn install && cd ../
- name: Build site
run: cd website && yarn run build && cd ../
- name: Publish website
uses: peaceiris/actions-gh-pages@v3
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build/docs
args: deploy --only hosting --public website/build/docs
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "website/build/docs",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}

0 comments on commit d3e0ae7

Please sign in to comment.