generated from include-davis/client-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c2aaed
commit 89dfc04
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Production Deployment | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
deploy_staging: | ||
name: Deploy Production | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: production | ||
url: ${{ vars.ENV_URL }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '21.1.0' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build code, then publish to Vercel | ||
run: > | ||
vercel | ||
--token ${{ secrets.VERCEL_TOKEN }} | ||
-n ${{ vars.VERCEL_PROJECT }} | ||
--yes | ||
--prod | ||
--env NEXT_PUBLIC_CMS_URL=${{ vars.NEXT_PUBLIC_CMS_URL }} | ||
--build-env NEXT_PUBLIC_CMS_URL=${{ vars.NEXT_PUBLIC_CMS_URL }} | ||
- name: Success | ||
run: echo "🚀 Deploy successful 🚀 " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Staging Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
deploy_staging: | ||
name: Deploy Staging | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: staging | ||
url: ${{ vars.ENV_URL }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '21.1.0' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build code, then publish to Vercel | ||
run: > | ||
vercel | ||
--token ${{ secrets.VERCEL_TOKEN }} | ||
-n ${{ vars.VERCEL_PROJECT }} | ||
--yes | ||
--prod | ||
--env NEXT_PUBLIC_CMS_URL=${{ vars.NEXT_PUBLIC_CMS_URL }} | ||
--build-env NEXT_PUBLIC_CMS_URL=${{ vars.NEXT_PUBLIC_CMS_URL }} | ||
- name: Success | ||
run: echo "🛠️ Deploy successful 🛠️" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ yarn-error.log* | |
|
||
# local env files | ||
.env*.local | ||
.env | ||
|
||
# vercel | ||
.vercel | ||
|