Skip to content

Commit 409a62f

Browse files
committed
Stop tracking generated llms files, remove redundant generate-llms CI job
1 parent ea87c8a commit 409a62f

5 files changed

Lines changed: 6 additions & 49482 deletions

File tree

.github/workflows/deploy-production.yml

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,62 +5,8 @@ on:
55
- main
66

77
jobs:
8-
generate-llms:
9-
runs-on: ubuntu-latest
10-
permissions:
11-
contents: write
12-
actions: read
13-
outputs:
14-
files-changed: ${{ steps.check-changes.outputs.changed }}
15-
steps:
16-
- name: 📥 Checkout
17-
uses: actions/checkout@v4
18-
with:
19-
token: ${{ secrets.PAT_AUTO_MERGE_LLMS_TXT_TOKEN }}
20-
fetch-depth: 0
21-
22-
- name: 🟢 Setup Node.js
23-
uses: actions/setup-node@v4
24-
with:
25-
node-version: '20'
26-
27-
- name: 📦 Install dependencies
28-
working-directory: ./docusaurus
29-
run: npm install
30-
31-
- name: 🤖 Generate LLMs files
32-
working-directory: ./docusaurus
33-
run: npm run generate-llms
34-
35-
- name: 🤖 Generate LLMs code file
36-
working-directory: ./docusaurus
37-
run: |
38-
node scripts/llms/generate-llms-code.js --anchors --all --output static/llms-code.txt
39-
node scripts/llms/validate-llms-code.js --path static/llms-code.txt --strict --verify-anchors --project-root ..
40-
41-
- name: 🔍 Check for changes
42-
id: check-changes
43-
run: |
44-
if git diff --quiet HEAD -- docusaurus/static/llms.txt docusaurus/static/llms-full.txt docusaurus/static/llms-code.txt; then
45-
echo "changed=false" >> $GITHUB_OUTPUT
46-
echo "🔄 No changes in LLMs files"
47-
else
48-
echo "changed=true" >> $GITHUB_OUTPUT
49-
echo "📝 LLMs files have changes"
50-
fi
51-
52-
- name: 📤 Commit and push changes
53-
if: steps.check-changes.outputs.changed == 'true'
54-
run: |
55-
git config --local user.email "noreply@github.com"
56-
git config --local user.name "GitHub Actions"
57-
git add docusaurus/static/llms.txt docusaurus/static/llms-full.txt docusaurus/static/llms-code.txt
58-
git commit -m "🤖 Update LLMs files [skip ci]"
59-
git push
60-
618
deploy-prod:
629
runs-on: ubuntu-latest
63-
needs: generate-llms
6410
steps:
6511
- name: Get Vercel deployment URL
6612
id: get-url-prod

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
.claude/
2+
3+
# Generated at build time by scripts/generate-llms.js and scripts/llms/generate-llms-code.js
4+
# Vercel regenerates these during deploy via `npm run build`
5+
docusaurus/static/llms.txt
6+
docusaurus/static/llms-full.txt
7+
docusaurus/static/llms-code.txt

0 commit comments

Comments
 (0)