Skip to content

Commit

Permalink
CI fixes and improvements (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-janon authored Jul 31, 2024
1 parent cd9078e commit d4a3409
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: npm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
run: vercel env pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build project
run: EXPORT=true yarn build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reindex-embeddings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: npm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
run: vercel env pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Generate embeddings
run: yarn generate-embeddings
4 changes: 1 addition & 3 deletions src/lib/generate-embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ import { readdir, readFile, stat } from "fs/promises";
import GithubSlugger from "github-slugger";
import { Content, Root } from "mdast";
import { fromMarkdown } from "mdast-util-from-markdown";
import { mdxFromMarkdown, MdxjsEsm } from "mdast-util-mdx";
import { MdxjsEsm } from "mdast-util-mdx";
import { toMarkdown } from "mdast-util-to-markdown";
import { toString } from "mdast-util-to-string";
import { mdxjs } from "micromark-extension-mdxjs";
import { OpenAI } from "openai";
import path, { basename, dirname, join } from "path";
import { u } from "unist-builder";
import { filter } from "unist-util-filter";
import yargs from "yargs";

dotenv.config({ path: path.join(__dirname, "../../.vercel/.env.production.local") });
dotenv.config({ path: path.join(__dirname, "../../.env.local") });

const ignoredFiles = ["pages/404.mdx"];
Expand Down

0 comments on commit d4a3409

Please sign in to comment.