Skip to content

Commit

Permalink
undid env setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin2Shih committed Mar 11, 2024
1 parent 3303258 commit 114245c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ jobs:
- name: Install dependencies
run: npm install

- name: Set Environment Variables
run: netlify env:set MONGODB_URI ${{ secrets.MONGODB_URI }}
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

- name: Lint and build code, then publish to Netlify
run: netlify deploy --build --prod --dir .next
env:
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ jobs:
- name: Install dependencies
run: npm install

- name: Set Environment Variables
run: netlify env:set --secret MONGODB_URI ${{ secrets.MONGODB_URI }} --context production
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

- name: Set TEST ENV
run: netlify env:set NEXT_PUBLIC_TEST test
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

- name: Lint and build code, then publish to Netlify
run: netlify deploy --build --prod --dir .next
env:
Expand Down

0 comments on commit 114245c

Please sign in to comment.