From a392fbc4f236c334d71c8a767bbf464bc114aedb Mon Sep 17 00:00:00 2001 From: TartejBrothers Date: Thu, 13 Jun 2024 14:05:10 +0530 Subject: [PATCH 1/2] Updated: Data --- .github/workflows/firebase-hosting-merge.yml | 19 ------------------- .../firebase-hosting-pull-request.yml | 16 ---------------- firebase.json | 7 ++----- 3 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/firebase-hosting-merge.yml delete mode 100644 .github/workflows/firebase-hosting-pull-request.yml diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml deleted file mode 100644 index 44dee44..0000000 --- a/.github/workflows/firebase-hosting-merge.yml +++ /dev/null @@ -1,19 +0,0 @@ -# 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: - - main -jobs: - build_and_deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: FirebaseExtended/action-hosting-deploy@v0 - with: - repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TARLOIC }}' - channelId: live - projectId: tarloic diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml deleted file mode 100644 index cdc2489..0000000 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ /dev/null @@ -1,16 +0,0 @@ -# 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 -jobs: - build_and_preview: - if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: FirebaseExtended/action-hosting-deploy@v0 - with: - repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TARLOIC }}' - projectId: tarloic diff --git a/firebase.json b/firebase.json index c9bd494..8d327bb 100644 --- a/firebase.json +++ b/firebase.json @@ -1,10 +1,7 @@ { "hosting": { "public": ".", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ] + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "cleanUrls": true } } From a84820e8f4c2feeeb1de9551d79a7e1fd18bb13d Mon Sep 17 00:00:00 2001 From: TartejBrothers Date: Thu, 13 Jun 2024 14:06:03 +0530 Subject: [PATCH 2/2] Updated: Data --- .github/workflows/firebase-hosting-merge.yml | 20 +++++++++++++++++++ .../firebase-hosting-pull-request.yml | 17 ++++++++++++++++ firebase.json | 7 +++++-- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/firebase-hosting-merge.yml create mode 100644 .github/workflows/firebase-hosting-pull-request.yml diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml new file mode 100644 index 0000000..8cf38df --- /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: + - main +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: echo build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TARLOIC }}' + channelId: live + projectId: tarloic diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml new file mode 100644 index 0000000..8c299d7 --- /dev/null +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -0,0 +1,17 @@ +# 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 +jobs: + build_and_preview: + if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: echo build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TARLOIC }}' + projectId: tarloic diff --git a/firebase.json b/firebase.json index 8d327bb..c9bd494 100644 --- a/firebase.json +++ b/firebase.json @@ -1,7 +1,10 @@ { "hosting": { "public": ".", - "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], - "cleanUrls": true + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ] } }