Skip to content

Commit 712b042

Browse files
committed
changing environment strategy
1 parent 1b83809 commit 712b042

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
id: deploy
4040
uses: JorgeLNJunior/[email protected]
4141
with:
42-
service_id: ${{ secrets.RENDER_SERVICE_ID }}
42+
service_id: ${{ vars.RENDER_SERVICE_ID }}
4343
api_key: ${{ secrets.RENDER_API_KEY }}
4444
wait_deploy: true
4545
github_deployment: true
46-
deployment_environment: Development
46+
deployment_environment: ${{ vars.RENDER_DEPLOY_ENVIRONMENT }}
4747
github_token: ${{ secrets.GITHUB_TOKEN }}
4848

4949
- name: Comment on PR
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
github-token: ${{ secrets.GITHUB_TOKEN }}
5454
script: |
55-
const deployUrl = '${{ secrets.SITE_URL }}';
55+
const deployUrl = '${{ vars.SITE_URL }}';
5656
const environment = 'Development';
5757
const commentIdentifier = `<!-- deployment-bot:${environment} -->`;
5858
@@ -116,11 +116,11 @@ jobs:
116116
id: deploy
117117
uses: JorgeLNJunior/[email protected]
118118
with:
119-
service_id: ${{ secrets.RENDER_SERVICE_ID }}
119+
service_id: ${{ vars.RENDER_SERVICE_ID }}
120120
api_key: ${{ secrets.RENDER_API_KEY }}
121121
wait_deploy: true
122122
github_deployment: true
123-
deployment_environment: Production
123+
deployment_environment: ${{ vars.RENDER_DEPLOY_ENVIRONMENT }}
124124
github_token: ${{ secrets.GITHUB_TOKEN }}
125125

126126
- name: Comment on PR
@@ -129,7 +129,7 @@ jobs:
129129
with:
130130
github-token: ${{ secrets.GITHUB_TOKEN }}
131131
script: |
132-
const deployUrl = '${{ secrets.SITE_URL }}';
132+
const deployUrl = '${{ vars.SITE_URL }}';
133133
const environment = 'Production';
134134
const commentIdentifier = `<!-- deployment-bot:${environment} -->`;
135135

0 commit comments

Comments
 (0)