Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
burnt-exe authored Jun 1, 2024
1 parent 9a16338 commit c65340b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,27 @@ jobs:
- name: Install Firebase CLI
run: npm install -g firebase-tools

- name: Ensure firebase.json exists
run: |
if [ ! -f firebase.json ]; then
echo '{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}' > firebase.json
fi
- name: Deploy to Firebase Hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
Expand Down

0 comments on commit c65340b

Please sign in to comment.