From fcab331fe64a6d82193eb447c1d895be2f251a9f Mon Sep 17 00:00:00 2001 From: HashirGJ8842 Date: Wed, 5 May 2021 18:07:02 +0530 Subject: [PATCH 1/3] feat: Add Workflow for rules deployment --- .github/workflows/rules-deploy.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/rules-deploy.yml diff --git a/.github/workflows/rules-deploy.yml b/.github/workflows/rules-deploy.yml new file mode 100644 index 0000000..fcb7469 --- /dev/null +++ b/.github/workflows/rules-deploy.yml @@ -0,0 +1,18 @@ +name: Firestore && Storage rules deploy + +on: + push: + branches: [master] + +jobs: + deploy_rules: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Install Firebase CLI + run: npm install -g firebase-tools + - name: Deploy Rules + run: firebase deploy --only firestore:rules,storage --token ${{ secrets.FIREBASE_TOKEN }} \ No newline at end of file From 8a61b58e147adbab266ef904774dd8fb4d882a0b Mon Sep 17 00:00:00 2001 From: HashirGJ8842 Date: Wed, 5 May 2021 20:00:22 +0530 Subject: [PATCH 2/3] feat: Add Development branch deployment --- .github/workflows/rules-deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rules-deploy.yml b/.github/workflows/rules-deploy.yml index fcb7469..fc8a4ca 100644 --- a/.github/workflows/rules-deploy.yml +++ b/.github/workflows/rules-deploy.yml @@ -2,7 +2,9 @@ name: Firestore && Storage rules deploy on: push: - branches: [master] + branches: + - master + - development jobs: deploy_rules: From 7c86f3600d651a91baa3481fab341322ccbd7197 Mon Sep 17 00:00:00 2001 From: HashirGJ8842 Date: Wed, 5 May 2021 20:03:34 +0530 Subject: [PATCH 3/3] feat: Connect development branch --- .firebaserc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.firebaserc b/.firebaserc index 3f3af3c..370bcd4 100644 --- a/.firebaserc +++ b/.firebaserc @@ -1,5 +1,5 @@ { "projects": { - "default": "research-2831b" + "default": "research-dev-4c18d" } }