Skip to content

Commit 46c9c4c

Browse files
committed
improved deployments and algolia indexing
1 parent 9523ab3 commit 46c9c4c

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ jobs:
103103
id: deploy
104104
uses: JorgeLNJunior/render-deploy@v1.4.5
105105
with:
106-
service_id: ${{ vars.RENDER_SERVICE_ID }}
106+
service_id: ${{ secrets.RENDER_SERVICE_ID }}
107107
api_key: ${{ secrets.RENDER_API_KEY }}
108108
wait_deploy: true
109109
github_deployment: true
110-
deployment_environment: ${{ vars.RENDER_DEPLOY_ENVIRONMENT }}
110+
deployment_environment: ${{ secrets.RENDER_DEPLOY_ENVIRONMENT }}
111111
github_token: ${{ secrets.GITHUB_TOKEN }}
112112

113113
- name: Comment on PR
@@ -116,7 +116,7 @@ jobs:
116116
with:
117117
github-token: ${{ secrets.GITHUB_TOKEN }}
118118
script: |
119-
const deployUrl = '${{ vars.SITE_URL }}';
119+
const deployUrl = '${{ secrets.SITE_URL }}';
120120
const environment = 'Development';
121121
const commentIdentifier = `<!-- deployment-bot:${environment} -->`;
122122
@@ -183,11 +183,11 @@ jobs:
183183
id: deploy
184184
uses: JorgeLNJunior/render-deploy@v1.4.5
185185
with:
186-
service_id: ${{ vars.RENDER_SERVICE_ID }}
186+
service_id: ${{ secrets.RENDER_SERVICE_ID }}
187187
api_key: ${{ secrets.RENDER_API_KEY }}
188188
wait_deploy: true
189189
github_deployment: true
190-
deployment_environment: ${{ vars.RENDER_DEPLOY_ENVIRONMENT }}
190+
deployment_environment: ${{ secrets.RENDER_DEPLOY_ENVIRONMENT }}
191191
github_token: ${{ secrets.GITHUB_TOKEN }}
192192

193193
- name: Comment on PR
@@ -196,7 +196,7 @@ jobs:
196196
with:
197197
github-token: ${{ secrets.GITHUB_TOKEN }}
198198
script: |
199-
const deployUrl = '${{ vars.SITE_URL }}';
199+
const deployUrl = '${{ secrets.SITE_URL }}';
200200
const environment = 'Production';
201201
const commentIdentifier = `<!-- deployment-bot:${environment} -->`;
202202

.github/workflows/reindex-algolia.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
5555
- name: Validate site is accessible
5656
run: |
57-
echo "🔍 Checking if site is accessible at ${{ vars.SITE_URL }}..."
58-
response=$(curl -s -o /dev/null -w "%{http_code}" "${{ vars.SITE_URL }}")
57+
echo "🔍 Checking if site is accessible at ${{ secrets.SITE_URL }}..."
58+
response=$(curl -s -o /dev/null -w "%{http_code}" "${{ secrets.SITE_URL }}")
5959
if [ "$response" -eq 200 ]; then
6060
echo "✅ Site is accessible (HTTP $response)"
6161
else
@@ -67,12 +67,12 @@ jobs:
6767
uses: algolia/algoliasearch-crawler-github-actions@v1
6868
id: algolia_crawler
6969
with:
70-
crawler-user-id: ${{ vars.CRAWLER_USER_ID }}
70+
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
7171
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
7272
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
7373
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
74-
crawler-name: ${{ vars.CRAWLER_NAME }}
75-
site-url: ${{ vars.SITE_URL }}
74+
crawler-name: ${{ secrets.CRAWLER_NAME }}
75+
site-url: ${{ secrets.SITE_URL }}
7676

7777
- name: Get workflow run details
7878
if: github.event_name == 'workflow_run'
@@ -118,7 +118,7 @@ jobs:
118118
119119
| Status | Index | Environment | Time |
120120
|--------|-------|-------------|------|
121-
| ✅ Success | ${{ vars.INDEX_NAME }} | ${{ steps.set-env.outputs.environment }} | ${new Date().toISOString()} |
121+
| ✅ Success | ${{ secrets.INDEX_NAME }} | ${{ steps.set-env.outputs.environment }} | ${new Date().toISOString()} |
122122
123123
Your documentation changes are now searchable in production.
124124
@@ -137,8 +137,8 @@ jobs:
137137
run: |
138138
if [ "${{ steps.algolia_crawler.outcome }}" == "success" ]; then
139139
echo "✅ Algolia reindexing completed successfully for ${{ steps.set-env.outputs.environment }} environment"
140-
echo "📍 Index: ${{ vars.INDEX_NAME }}"
141-
echo "🌐 Site URL: ${{ vars.SITE_URL }}"
140+
echo "📍 Index: ${{ secrets.INDEX_NAME }}"
141+
echo "🌐 Site URL: ${{ secrets.SITE_URL }}"
142142
else
143143
echo "❌ Algolia reindexing failed"
144144
exit 1

0 commit comments

Comments
 (0)