Skip to content

Commit

Permalink
updated build flow, separated search-index weekly cadence (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLawton authored Oct 8, 2024
1 parent e5d46a8 commit 6d01b9f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/search-index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build search-index on weekly cadence

on:
schedule:
- cron: "0 8 * * 1"

jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: git-checkout
uses: actions/checkout@v2
with:
lfs: true

- name: Install dependencies
run: |
npm install -g [email protected]
pnpm install
- name: Build
run: pnpm run search-build

- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
GIT_CLONE_PROTECTION_ACTIVE: false
BRANCH: build
FOLDER: ./docs/dist/.vocs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build: ({sha}) {msg}"
Binary file modified docs/.DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"type": "module",
"scripts": {
"dev": "vocs dev",
"build": "vocs build --searchIndex false && vocs search-index",
"build": "vocs build --searchIndex false",
"search-build": "vocs search-index",
"preview": "vocs preview",
"format": "biome format . --write",
"lint": "biome lint . --write --unsafe"
Expand Down

0 comments on commit 6d01b9f

Please sign in to comment.