Skip to content

Commit

Permalink
Renamed to WotSong and updated Github actions + Firebase config
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanboersma committed Feb 28, 2022
1 parent 0729b8e commit e7c9276
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 82 deletions.
14 changes: 0 additions & 14 deletions .firebase/hosting.YnVpbGQ.cache

This file was deleted.

12 changes: 6 additions & 6 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"projects": {
"default": "guess-the-song-d74b8"
"default": "wotsong-app"
},
"targets": {
"guess-the-song-d74b8": {
"wotsong-app": {
"hosting": {
"test-guess-the-song": [
"test-guess-the-song"
"test-wotsong-app": [
"test-wotsong-app"
],
"guess-the-song": [
"guess-the-song"
"wotsong-app": [
"wotsong-app"
]
}
}
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/firebase-hosting-merge-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ jobs:
REACT_APP_SPOTIFY_TOKEN_ENDPOINT: '${{ secrets.REACT_APP_SPOTIFY_TOKEN_ENDPOINT }}'
REACT_APP_RECEIVER_APP_ID: '${{ secrets.REACT_APP_RECEIVER_APP_ID }}'
REACT_APP_CAST_NAMESPACE: '${{ secrets.REACT_APP_CAST_NAMESPACE }}'
REACT_APP_ENV: 'dev'
REACT_APP_ENV: 'prod'
steps:
- uses: actions/checkout@v2
- run: curl -o- -L https://yarnpkg.com/install.sh | bash
- run: yarn install && yarn lint && yarn build
- run: yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GUESS_THE_SONG_D74B8 }}'
target: guess-the-song
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WOTSONG_APP }}'
target: wotsong-app
channelId: live
projectId: guess-the-song-d74b8
projectId: wotsong-app
47 changes: 0 additions & 47 deletions .github/workflows/firebase-hosting-merge-test.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ jobs:
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GUESS_THE_SONG_D74B8 }}'
target: test-scrollbar
projectId: guess-the-song-d74b8
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WOTSONG_APP }}'
target: test-wotsong-app
projectId: wotsong-app
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Guess The Song
# WotSong - A Music Guessing Game that integrates with Chrome Cast

Challenge your on-demand knowledge about music titles and artists with Guess The Song. This game introduces a little light competition inbetween friends at gatherings where you can compete in identifying songs the fastest.
Challenge your on-demand knowledge about music titles and artists with WotSong. This game introduces a little light competition inbetween friends at gatherings where you can compete in identifying songs the fastest.

A game session can be started and cast to your chromecast device on your television. Join game sessions on the mobile and quiz on your personally created playlists from Spotify...

Expand Down
59 changes: 59 additions & 0 deletions firebase-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[debug] [2022-02-28T20:12:50.162Z] ----------------------------------------------------------------------
[debug] [2022-02-28T20:12:50.165Z] Command: /usr/local/bin/node /usr/local/bin/firebase deploy
[debug] [2022-02-28T20:12:50.166Z] CLI Version: 10.2.1
[debug] [2022-02-28T20:12:50.166Z] Platform: darwin
[debug] [2022-02-28T20:12:50.166Z] Node Version: v16.14.0
[debug] [2022-02-28T20:12:50.174Z] Time: Mon Feb 28 2022 21:12:50 GMT+0100 (Centraleuropæisk normaltid)
[debug] [2022-02-28T20:12:50.175Z] ----------------------------------------------------------------------
[debug]
[debug] [2022-02-28T20:12:50.243Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2022-02-28T20:12:50.243Z] > authorizing via signed-in user ([email protected])
[debug] [2022-02-28T20:12:50.244Z] [iam] checking project wotsong-app for permissions ["datastore.indexes.create","datastore.indexes.delete","datastore.indexes.list","datastore.indexes.update","firebase.projects.get","firebasehosting.sites.update"]
[debug] [2022-02-28T20:12:50.247Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/wotsong-app:testIamPermissions [none]
[debug] [2022-02-28T20:12:50.247Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/wotsong-app:testIamPermissions {"permissions":["datastore.indexes.create","datastore.indexes.delete","datastore.indexes.list","datastore.indexes.update","firebase.projects.get","firebasehosting.sites.update"]}
[debug] [2022-02-28T20:12:50.647Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/wotsong-app:testIamPermissions 200
[debug] [2022-02-28T20:12:50.648Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/wotsong-app:testIamPermissions {"permissions":["datastore.indexes.create","datastore.indexes.delete","datastore.indexes.list","datastore.indexes.update","firebase.projects.get","firebasehosting.sites.update"]}
[debug] [2022-02-28T20:12:50.649Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/wotsong-app [none]
[debug] [2022-02-28T20:12:51.049Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/wotsong-app 200
[debug] [2022-02-28T20:12:51.050Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/wotsong-app {"projectId":"wotsong-app","projectNumber":"189007230557","displayName":"wotsong","name":"projects/wotsong-app","resources":{"hostingSite":"wotsong-app","storageBucket":"wotsong-app.appspot.com","locationId":"europe-west"},"state":"ACTIVE"}
[info]
[info] === Deploying to 'wotsong-app'...
[info]
[info] i deploying firestore, hosting
[info] i firestore: reading indexes from firestore.indexes.json...
[info] i cloud.firestore: checking firestore.rules for compilation errors...
[debug] [2022-02-28T20:12:51.055Z] >>> [apiv2][query] POST https://firebaserules.googleapis.com/v1/projects/wotsong-app:test [none]
[debug] [2022-02-28T20:12:51.055Z] >>> [apiv2][body] POST https://firebaserules.googleapis.com/v1/projects/wotsong-app:test [omitted]
[debug] [2022-02-28T20:12:51.974Z] <<< [apiv2][status] POST https://firebaserules.googleapis.com/v1/projects/wotsong-app:test 200
[debug] [2022-02-28T20:12:51.974Z] <<< [apiv2][body] POST https://firebaserules.googleapis.com/v1/projects/wotsong-app:test {}
[info] ✔ cloud.firestore: rules file firestore.rules compiled successfully
[debug] [2022-02-28T20:12:51.976Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/wotsong-app [none]
[debug] [2022-02-28T20:12:52.271Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/wotsong-app 200
[debug] [2022-02-28T20:12:52.271Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/wotsong-app {"projectId":"wotsong-app","projectNumber":"189007230557","displayName":"wotsong","name":"projects/wotsong-app","resources":{"hostingSite":"wotsong-app","storageBucket":"wotsong-app.appspot.com","locationId":"europe-west"},"state":"ACTIVE"}
[debug] [2022-02-28T20:12:52.275Z] >>> [apiv2][query] POST https://firebasehosting.googleapis.com/v1beta1/projects/189007230557/sites/wotsong-app/versions [none]
[debug] [2022-02-28T20:12:52.275Z] >>> [apiv2][body] POST https://firebasehosting.googleapis.com/v1beta1/projects/189007230557/sites/wotsong-app/versions {"config":{"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"}}
[debug] [2022-02-28T20:12:52.276Z] >>> [apiv2][query] POST https://firebasehosting.googleapis.com/v1beta1/projects/189007230557/sites/test-wotsong-app/versions [none]
[debug] [2022-02-28T20:12:52.276Z] >>> [apiv2][body] POST https://firebasehosting.googleapis.com/v1beta1/projects/189007230557/sites/test-wotsong-app/versions {"config":{"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"}}
[debug] [2022-02-28T20:12:54.427Z] <<< [apiv2][status] POST https://firebasehosting.googleapis.com/v1beta1/projects/189007230557/sites/wotsong-app/versions 200
[debug] [2022-02-28T20:12:54.427Z] <<< [apiv2][body] POST https://firebasehosting.googleapis.com/v1beta1/projects/189007230557/sites/wotsong-app/versions {"name":"projects/189007230557/sites/wotsong-app/versions/a754753f5c8e1216","status":"CREATED","config":{"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"}}
[debug] [2022-02-28T20:12:54.610Z] <<< [apiv2][status] POST https://firebasehosting.googleapis.com/v1beta1/projects/189007230557/sites/test-wotsong-app/versions 200
[debug] [2022-02-28T20:12:54.610Z] <<< [apiv2][body] POST https://firebasehosting.googleapis.com/v1beta1/projects/189007230557/sites/test-wotsong-app/versions {"name":"projects/189007230557/sites/test-wotsong-app/versions/6c7be9a0a356897c","status":"CREATED","config":{"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"}}
[debug] [2022-02-28T20:12:54.614Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2022-02-28T20:12:54.614Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>
[debug] [2022-02-28T20:12:54.620Z] >>> [apiv2][query] GET https://firebaserules.googleapis.com/v1/projects/wotsong-app/releases pageSize=10&pageToken=
[debug] [2022-02-28T20:12:54.773Z] <<< HTTP RESPONSE 200 {"date":"Mon, 28 Feb 2022 20:12:54 GMT","cache-control":"no-cache, no-store, max-age=0, must-revalidate","pragma":"no-cache","expires":"Mon, 01 Jan 1990 00:00:00 GMT","content-type":"application/json; charset=utf-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"scaffolding on HTTPServer2","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[debug] [2022-02-28T20:12:54.828Z] >>> HTTP REQUEST GET https://firestore.googleapis.com/v1/projects/wotsong-app/databases/(default)/collectionGroups/-/indexes

[debug] [2022-02-28T20:12:55.346Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 28 Feb 2022 20:12:55 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[debug] [2022-02-28T20:12:55.348Z] >>> HTTP REQUEST GET https://firestore.googleapis.com/v1/projects/wotsong-app/databases/(default)/collectionGroups/-/fields?filter=indexConfig.usesAncestorConfig=false

[debug] [2022-02-28T20:12:55.481Z] <<< [apiv2][status] GET https://firebaserules.googleapis.com/v1/projects/wotsong-app/releases 200
[debug] [2022-02-28T20:12:55.481Z] <<< [apiv2][body] GET https://firebaserules.googleapis.com/v1/projects/wotsong-app/releases {"releases":[{"name":"projects/wotsong-app/releases/cloud.firestore","rulesetName":"projects/wotsong-app/rulesets/9405ec67-9090-425c-8c21-7481d4a40366","createTime":"2022-02-28T19:57:20.608377Z","updateTime":"2022-02-28T19:57:20.608377Z"}]}
[debug] [2022-02-28T20:12:55.482Z] > refreshing access token with scopes: []
[debug] [2022-02-28T20:12:55.482Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>
[debug] [2022-02-28T20:12:55.607Z] <<< HTTP RESPONSE 200 {"pragma":"no-cache","expires":"Mon, 01 Jan 1990 00:00:00 GMT","date":"Mon, 28 Feb 2022 20:12:55 GMT","cache-control":"no-cache, no-store, max-age=0, must-revalidate","content-type":"application/json; charset=utf-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"scaffolding on HTTPServer2","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[debug] [2022-02-28T20:12:55.660Z] >>> [apiv2][query] GET https://firebaserules.googleapis.com/v1/projects/wotsong-app/rulesets/9405ec67-9090-425c-8c21-7481d4a40366 [none]
[debug] [2022-02-28T20:12:55.728Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 28 Feb 2022 20:12:55 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[info] ✔ firestore: deployed indexes in firestore.indexes.json successfully
4 changes: 2 additions & 2 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"indexes": "firestore.indexes.json"
},
"hosting": [{
"target": "guess-the-song",
"target": "wotsong-app",
"public": "build",
"ignore": [
"firebase.json",
Expand All @@ -19,7 +19,7 @@
]
},
{
"target": "test-guess-the-song",
"target": "test-wotsong-app",
"public": "build",
"ignore": [
"firebase.json",
Expand Down
2 changes: 1 addition & 1 deletion firestore.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write;
allow read, write: if false;
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "guess-game",
"name": "wotsong-app",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down

0 comments on commit e7c9276

Please sign in to comment.