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:
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

View 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

View 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

View 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