Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
if [ -n "$FIREBASE_SERVICE_ACCOUNT" ]; then
echo "$FIREBASE_SERVICE_ACCOUNT" | base64 --decode > "${HOME}/firebaseServiceAccount.json"
export GOOGLE_APPLICATION_CREDENTIALS="${HOME}/firebaseServiceAccount.json"
firebase deploy --only hosting --project "$FIREBASE_PROJECT_ID"
npm run deploy -- --project "$FIREBASE_PROJECT_ID"
elif [ -n "$FIREBASE_TOKEN" ]; then
firebase deploy --only hosting --token "$FIREBASE_TOKEN" --project "$FIREBASE_PROJECT_ID"
npm run deploy -- --token "$FIREBASE_TOKEN" --project "$FIREBASE_PROJECT_ID"
else
echo "Firebase credentials not provided" >&2
exit 1
Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@

## Testing & Deployment
- [x] Unit tests for timer math and state
- [ ] Firebase Hosting and Electron packaging scripts
- [x] Firebase Hosting and Electron packaging scripts
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"build": "vite build",
"test": "jest",
"api": "node server/index.js",
"desktop": "electron ./electron/main.js"
"desktop": "electron ./electron/main.js",
"deploy": "firebase deploy --only hosting",
"package": "electron-packager . StagePulse --platform=linux,win32,darwin --out=dist --overwrite"
},
"dependencies": {
"express": "^5.1.0",
Expand Down