chore: update netlify site id secrets
authorKrishan <33421343+kfiven@users.noreply.github.com>
Wed, 14 Dec 2022 05:17:10 +0000 (10:47 +0530)
committerKrishan <33421343+kfiven@users.noreply.github.com>
Wed, 14 Dec 2022 05:17:10 +0000 (10:47 +0530)
.github/workflows/build-pull-request.yml
.github/workflows/deploy-pull-request.yml
.github/workflows/netlify-dev.yml
.github/workflows/prod-deploy.yml

index 65ca34eb7965016ff66f88c2c3bfbc9a8ed7432c..5eac02ebd2db6d9fc81964cb47383157b28e92e7 100644 (file)
@@ -1,4 +1,4 @@
-name: 'Build pull request'
+name: Build pull request
 
 on:
   pull_request:
@@ -6,7 +6,7 @@ on:
 
 jobs:
   build-pull-request:
-    name: 'Build pull request'
+    name: Build pull request
     runs-on: ubuntu-latest
     env:
       PR_NUMBER: ${{github.event.number}}
@@ -17,7 +17,7 @@ jobs:
         uses: actions/setup-node@v3.5.1
         with:
           node-version: 18.12.1
-          cache: 'npm'
+          cache: "npm"
       - name: Install dependencies
         run: npm ci
       - name: Build app
index d29c9acead7bfd5c9c7716efcbf5334ffe2a0bfc..ab54f8dffda2e0f121ed350326aa1d578dc64638 100644 (file)
@@ -1,11 +1,13 @@
 name: Deploy PR to Netlify
+
 on:
   workflow_run:
       workflows: ["Build pull request"]
       types: [completed]
+
 jobs:
   deploy-pull-request:
-    name: 'Deploy pull request'
+    name: Deploy pull request
     runs-on: ubuntu-latest
     permissions:
       contents: read
@@ -40,7 +42,7 @@ jobs:
           enable-commit-comment: false
         env:
           NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
-          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE3_ID }}
+          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_PR_CINNY }}
         timeout-minutes: 1
       - name: Comment preview on PR
         uses: thollander/actions-comment-pull-request@c22fb302208b7b170d252a61a505d2ea27245eff
index c0028c37e78ef21400a200079c4dc99bf93ee010..6f26247b5910d8f543e2c6bb0c667034cc7ac1d8 100644 (file)
@@ -1,4 +1,4 @@
-name: 'Deploy to Netlify (dev)'
+name: Deploy to Netlify (dev)
 
 on:
   push:
@@ -7,7 +7,7 @@ on:
 
 jobs:
   deploy-to-netlify:
-    name: 'Deploy to Netlify'
+    name: Deploy to Netlify
     runs-on: ubuntu-latest
     steps:
       - name: Checkout repository
@@ -16,7 +16,7 @@ jobs:
         uses: actions/setup-node@v3.5.1
         with:
           node-version: 18.12.1
-          cache: 'npm'
+          cache: "npm"
       - name: Install dependencies
         run: npm ci
       - name: Build app
@@ -33,5 +33,5 @@ jobs:
           github-deployment-description: 'Nightly deployment on each commit to dev branch'
         env:
           NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
-          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE2_ID }}
+          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_DEV }}
         timeout-minutes: 1
index 0d33d128cadf60599e51f9a374ed889529f47128..fa09008a354f0930554b19b3c1c56d5f070d5908 100644 (file)
@@ -1,4 +1,4 @@
-name: 'Production deploy'
+name: Production deploy
 
 on:
   release:
@@ -6,7 +6,7 @@ on:
 
 jobs:
   deploy-and-tarball:
-    name: 'Netlify deploy and tarball'
+    name: Netlify deploy and tarball
     runs-on: ubuntu-latest
     steps:
       - name: Checkout repository
@@ -15,7 +15,7 @@ jobs:
         uses: actions/setup-node@v3.5.1
         with:
           node-version: 18.12.1
-          cache: 'npm'
+          cache: "npm"
       - name: Install dependencies
         run: npm ci
       - name: Build app
@@ -32,7 +32,7 @@ jobs:
           github-deployment-description: 'Stable deployment on each release'
         env:
           NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
-          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
+          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_APP }}
         timeout-minutes: 1
       - name: Get version from tag
         id: vars