From 63cb56481896e65358e96f4c8d8e103ae7e83283 Mon Sep 17 00:00:00 2001 From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Wed, 14 Dec 2022 10:47:10 +0530 Subject: [PATCH] chore: update netlify site id secrets --- .github/workflows/build-pull-request.yml | 6 +++--- .github/workflows/deploy-pull-request.yml | 6 ++++-- .github/workflows/netlify-dev.yml | 8 ++++---- .github/workflows/prod-deploy.yml | 8 ++++---- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index 65ca34e..5eac02e 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -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 diff --git a/.github/workflows/deploy-pull-request.yml b/.github/workflows/deploy-pull-request.yml index d29c9ac..ab54f8d 100644 --- a/.github/workflows/deploy-pull-request.yml +++ b/.github/workflows/deploy-pull-request.yml @@ -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 diff --git a/.github/workflows/netlify-dev.yml b/.github/workflows/netlify-dev.yml index c0028c3..6f26247 100644 --- a/.github/workflows/netlify-dev.yml +++ b/.github/workflows/netlify-dev.yml @@ -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 diff --git a/.github/workflows/prod-deploy.yml b/.github/workflows/prod-deploy.yml index 0d33d12..fa09008 100644 --- a/.github/workflows/prod-deploy.yml +++ b/.github/workflows/prod-deploy.yml @@ -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