Skip to content

Commit

Permalink
🐛(ci) Add pregen to site build (#775)
Browse files Browse the repository at this point in the history
* Add pregen to site build

* Move pregen to deploy workflow
  • Loading branch information
Snugug authored Sep 3, 2024
1 parent 991109b commit 71b9a47
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/tbd-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ jobs:
- name: Install dependencies
working-directory: site
run: pnpm install
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: search
path: ./site
- name: Build Pregen
working-directory: site
run: pnpm pregen
env:
SANITY_PROJECT_ID: ${{ secrets.SANITY_PROJECT_ID }}
SANITY_DATASET: ${{ secrets.SANITY_DATASET }}
SANITY_TOKEN: ${{ secrets.SANITY_TOKEN }}
SANITY_WEBHOOK_SECRET: ${{ secrets.SANITY_WEBHOOK_SECRET }}
- name: Make .env file
uses: SpicyPizza/[email protected]
with:
Expand Down

0 comments on commit 71b9a47

Please sign in to comment.