Welcome to the source code of mwskwong.com. You can see how I created my site here.
-
Create a PR from
canary
tomain
. Let the GitHub Actions run automatically. -
In Contentful
-
Update the
master
alias target to the untargeted canary environment (check the Created date, it should be newer than the currently targeted environment). -
Delete the untargeted canary environment (i.e. the one previously targeted by
master
) and add a new one.-
Environment ID naming:
canary_YYYY-MM-DDTHH.mm.ss.SSSZ
`canary_${new Date().toISOString().replaceAll(':', '.')}`;
-
Cloned from:
development
environment
-
-
Update the Environments of the
canary
API key, check the newly added canary environment
-
-
In Vercel, replace the value of environment variable
CONTENTFUL_ENVIRONMENT
of the Preview environment to the Contentful Environment ID defined in step 2.ii. -
Merge/enable auto merge for the PR.
-
Create a PR to
canary
(optional) -
In Contentful
-
Delete the latest canary environment and add a new one.
-
Environment ID naming:
canary_YYYY-MM-DDTHH.mm.ss.SSSZ
`canary_${new Date().toISOString().replaceAll(':', '.')}`;
-
Cloned from:
development
environment
-
-
Update the Environments of the
canary
API key, check the newly added canary environment
-
-
Perform step 3 of PROD Deployment
-
Merge the PR or push code changes to
canary
directly