Skip to content

Commit 71b9a47

Browse files
authored
🐛(ci) Add pregen to site build (#775)
* Add pregen to site build * Move pregen to deploy workflow
1 parent 991109b commit 71b9a47

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/tbd-site.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@ jobs:
9191
- name: Install dependencies
9292
working-directory: site
9393
run: pnpm install
94-
- name: Download artifact
95-
uses: actions/download-artifact@v4
96-
with:
97-
name: search
98-
path: ./site
94+
- name: Build Pregen
95+
working-directory: site
96+
run: pnpm pregen
97+
env:
98+
SANITY_PROJECT_ID: ${{ secrets.SANITY_PROJECT_ID }}
99+
SANITY_DATASET: ${{ secrets.SANITY_DATASET }}
100+
SANITY_TOKEN: ${{ secrets.SANITY_TOKEN }}
101+
SANITY_WEBHOOK_SECRET: ${{ secrets.SANITY_WEBHOOK_SECRET }}
99102
- name: Make .env file
100103
uses: SpicyPizza/create-envfile@v2.0
101104
with:

0 commit comments

Comments
 (0)