From 954463b2ed251ffafc3dc98c54e9d33caf974d27 Mon Sep 17 00:00:00 2001 From: treezy254 Date: Tue, 30 Jul 2024 10:07:28 +0300 Subject: [PATCH] deployed --- .firebaserc | 5 + .github/workflow/main.yaml | 33 --- .github/workflows/firebase-hosting-merge.yml | 20 ++ .../firebase-hosting-pull-request.yml | 21 ++ .gitignore | 3 +- firebase.json | 16 ++ index.html | 104 -------- public/index.html | 229 ++++++++++++++++++ 8 files changed, 293 insertions(+), 138 deletions(-) create mode 100644 .firebaserc delete mode 100644 .github/workflow/main.yaml create mode 100644 .github/workflows/firebase-hosting-merge.yml create mode 100644 .github/workflows/firebase-hosting-pull-request.yml create mode 100644 firebase.json delete mode 100644 index.html create mode 100644 public/index.html 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 @@ - - - - - - Daily Timebox - - - - - - - - - -
-
-
OPTIMAL HUMAN
-

DAILY TIMEBOX

-
- - - -
-
-
-
-

3 TOP TASKS

-

What can you accomplish today to meet your weekly outcomes?

-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
-
-
-

SECONDARY TASKS

-
    -
  • - - -
  • -
  • - - -
  • -
-
-
-

Task Brain Dump

-

Dump all of the tasks that you want to complete

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-
-
-
-
3am
-
4am
-
5am
-
6am
-
7am
-
8am
-
9am
-
10am
-
-
-
-
-
- - - - - diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..1a8d4c4 --- /dev/null +++ b/public/index.html @@ -0,0 +1,229 @@ + + + + + + + Daily Timebox + + + + + + + + + + +
+
+
OPTIMAL HUMAN
+

DAILY TIMEBOX

+
+ + + +
+
+
+
+

3 TOP TASKS

+

What can you accomplish today to meet your weekly + outcomes?

+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+
+

SECONDARY TASKS

+
    +
  • + + +
  • +
  • + + +
  • +
+
+
+

Task Brain Dump

+

Dump all of the tasks that you want to complete

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+
+
3am
+
4am
+
5am
+
6am
+
7am
+
8am
+
9am
+
10am
+
+
+
+
+
+ + + + \ No newline at end of file