diff --git a/.github/workflows/search-index.yml b/.github/workflows/search-index.yml new file mode 100644 index 0000000000..c3e4d4542d --- /dev/null +++ b/.github/workflows/search-index.yml @@ -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 pnpm@8.15.4 + 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}" diff --git a/docs/.DS_Store b/docs/.DS_Store index 99a6944efa..b0781fe257 100644 Binary files a/docs/.DS_Store and b/docs/.DS_Store differ diff --git a/package.json b/package.json index 886feffd20..e6e5049e7e 100644 --- a/package.json +++ b/package.json @@ -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"