From 6d01b9f36c6bfe14f2a1045d2a9f6cef8f2e66b4 Mon Sep 17 00:00:00 2001 From: James Lawton Date: Tue, 8 Oct 2024 13:02:45 +0100 Subject: [PATCH] updated build flow, separated search-index weekly cadence (#328) --- .github/workflows/search-index.yml | 33 +++++++++++++++++++++++++++++ docs/.DS_Store | Bin 8196 -> 8196 bytes package.json | 3 ++- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/search-index.yml 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 99a6944efa2589f10e8a32adf8ff56bcc515f570..b0781fe2571c3e6cd29d7be87ee9a3dca4433c4a 100644 GIT binary patch delta 189 zcmZp1XmOa}&nUYwU^hRb>|_T4iODJgrv(!kN*EH8%8Ltsqg#m0< zS#VKaPJUiGP>gYMhu~^Pgo%dcrY1THhUON8Ol0ic{88vU%Vu_oZ!DX)iLf&R0M&&y AlmGw# delta 258 zcmZp1XmOa}¥U^hRb!ej>liODJgr|UBriWy2gbMljua`KZH7#IW?7?{$5wBCO( z0J0buSQt_m!0K|+4TF>Oa|=L%f*KR$k>zspU0k4MaH#v8JD03^%n?;S1&h2C!tjC& zB*R?}FigHAxSDbAB*8)*+3IRtVZ+`Rn$$+HCI87FME5I)Z`vB7;ayTmt^%`T#cnI<;40093jNS*)y 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"