chore: update netlify site id secrets

This commit is contained in:
Krishan 2022-12-14 10:47:10 +05:30
parent e93511fde7
commit 63cb564818
4 changed files with 15 additions and 13 deletions

View file

@ -1,4 +1,4 @@
name: 'Build pull request' name: Build pull request
on: on:
pull_request: pull_request:
@ -6,7 +6,7 @@ on:
jobs: jobs:
build-pull-request: build-pull-request:
name: 'Build pull request' name: Build pull request
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
PR_NUMBER: ${{github.event.number}} PR_NUMBER: ${{github.event.number}}
@ -17,7 +17,7 @@ jobs:
uses: actions/setup-node@v3.5.1 uses: actions/setup-node@v3.5.1
with: with:
node-version: 18.12.1 node-version: 18.12.1
cache: 'npm' cache: "npm"
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Build app - name: Build app

View file

@ -1,11 +1,13 @@
name: Deploy PR to Netlify name: Deploy PR to Netlify
on: on:
workflow_run: workflow_run:
workflows: ["Build pull request"] workflows: ["Build pull request"]
types: [completed] types: [completed]
jobs: jobs:
deploy-pull-request: deploy-pull-request:
name: 'Deploy pull request' name: Deploy pull request
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
@ -40,7 +42,7 @@ jobs:
enable-commit-comment: false enable-commit-comment: false
env: env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} 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 timeout-minutes: 1
- name: Comment preview on PR - name: Comment preview on PR
uses: thollander/actions-comment-pull-request@c22fb302208b7b170d252a61a505d2ea27245eff uses: thollander/actions-comment-pull-request@c22fb302208b7b170d252a61a505d2ea27245eff

View file

@ -1,4 +1,4 @@
name: 'Deploy to Netlify (dev)' name: Deploy to Netlify (dev)
on: on:
push: push:
@ -7,7 +7,7 @@ on:
jobs: jobs:
deploy-to-netlify: deploy-to-netlify:
name: 'Deploy to Netlify' name: Deploy to Netlify
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -16,7 +16,7 @@ jobs:
uses: actions/setup-node@v3.5.1 uses: actions/setup-node@v3.5.1
with: with:
node-version: 18.12.1 node-version: 18.12.1
cache: 'npm' cache: "npm"
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Build app - name: Build app
@ -33,5 +33,5 @@ jobs:
github-deployment-description: 'Nightly deployment on each commit to dev branch' github-deployment-description: 'Nightly deployment on each commit to dev branch'
env: env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} 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 timeout-minutes: 1

View file

@ -1,4 +1,4 @@
name: 'Production deploy' name: Production deploy
on: on:
release: release:
@ -6,7 +6,7 @@ on:
jobs: jobs:
deploy-and-tarball: deploy-and-tarball:
name: 'Netlify deploy and tarball' name: Netlify deploy and tarball
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -15,7 +15,7 @@ jobs:
uses: actions/setup-node@v3.5.1 uses: actions/setup-node@v3.5.1
with: with:
node-version: 18.12.1 node-version: 18.12.1
cache: 'npm' cache: "npm"
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Build app - name: Build app
@ -32,7 +32,7 @@ jobs:
github-deployment-description: 'Stable deployment on each release' github-deployment-description: 'Stable deployment on each release'
env: env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} 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 timeout-minutes: 1
- name: Get version from tag - name: Get version from tag
id: vars id: vars