Skip to content

Commit e913f99

Browse files
authored
Add new workflow fix to try to fix cache issue when building
1 parent 76b0951 commit e913f99

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/deploy-production.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
- main
66

77
jobs:
8-
# Generates LLM files before Vercel builds
98
pre-build:
109
runs-on: ubuntu-latest
1110
steps:
@@ -19,7 +18,7 @@ jobs:
1918
with:
2019
node-version: '18'
2120
cache: 'npm'
22-
cache-dependency-path: 'docusaurus/package-lock.json'
21+
cache-dependency-path: './docusaurus/package-lock.json'
2322

2423
- name: 📦 Install dependencies
2524
working-directory: ./docusaurus
@@ -28,14 +27,14 @@ jobs:
2827
- name: 🤖 Generate and commit LLMs files
2928
working-directory: ./docusaurus
3029
run: |
31-
# Génère les fichiers
30+
# Generate files
3231
node scripts/generate-llms.js
3332
3433
# Configure git
3534
git config --local user.email "action@github.com"
3635
git config --local user.name "LLMs Generator"
3736
38-
# Commit si changé
37+
# Commit if changed
3938
git add static/llms*.txt
4039
if ! git diff --staged --quiet; then
4140
git commit -m "🤖 Update LLMs files [skip ci]"
@@ -49,7 +48,6 @@ jobs:
4948
runs-on: ubuntu-latest
5049
needs: pre-build
5150
steps:
52-
# Ton workflow existant exactement pareil...
5351
- name: Get Vercel deployment URL
5452
id: get-url-prod
5553
uses: derrickmehaffy/vercel-preview-url@main

0 commit comments

Comments
 (0)