diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..d9af94a --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "optimal-human" + } +} diff --git a/.github/workflow/main.yaml b/.github/workflow/main.yaml deleted file mode 100644 index c14ce73..0000000 --- a/.github/workflow/main.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Daily Timebox App CI - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: '16' - - - name: Install Dependencies - run: npm install - - - name: Run Linter - run: npm run lint - - - name: Run Tests - run: npm test - - - name: Build Project - run: npm run build diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml new file mode 100644 index 0000000..c66ea87 --- /dev/null +++ b/.github/workflows/firebase-hosting-merge.yml @@ -0,0 +1,20 @@ +# This file was auto-generated by the Firebase CLI +# https://github.com/firebase/firebase-tools + +name: Deploy to Firebase Hosting on merge +on: + push: + branches: + - master +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm ci && npm run build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_OPTIMAL_HUMAN }} + channelId: live + projectId: optimal-human diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml new file mode 100644 index 0000000..0f06456 --- /dev/null +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -0,0 +1,21 @@ +# This file was auto-generated by the Firebase CLI +# https://github.com/firebase/firebase-tools + +name: Deploy to Firebase Hosting on PR +on: pull_request +permissions: + checks: write + contents: read + pull-requests: write +jobs: + build_and_preview: + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm ci && npm run build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_OPTIMAL_HUMAN }} + projectId: optimal-human diff --git a/.gitignore b/.gitignore index 615d092..1f41c93 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env -TODO \ No newline at end of file +TODO +.firebase \ No newline at end of file diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..93fb369 --- /dev/null +++ b/firebase.json @@ -0,0 +1,16 @@ +{ + "hosting": { + "public": "public", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + } +} diff --git a/index.html b/index.html deleted file mode 100644 index c3166c6..0000000 --- a/index.html +++ /dev/null @@ -1,104 +0,0 @@ - - -
- - -What can you accomplish today to meet your weekly outcomes?
-Dump all of the tasks that you want to complete
-What can you accomplish today to meet your weekly + outcomes?
+Dump all of the tasks that you want to complete
+