mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Deploy to firebase (#1481)
This commit is contained in:
parent
84d1ad61d8
commit
20a37fdd35
5
.firebaserc
Normal file
5
.firebaserc
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"projects": {
|
||||
"default": "yew-rs"
|
||||
}
|
||||
}
|
||||
9
.github/workflows/autopublish.yml
vendored
9
.github/workflows/autopublish.yml
vendored
@ -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
firebase.json
Normal file
16
firebase.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"hosting": {
|
||||
"public": "website/build/docs",
|
||||
"ignore": [
|
||||
"firebase.json",
|
||||
"**/.*",
|
||||
"**/node_modules/**"
|
||||
],
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "**",
|
||||
"destination": "/index.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user