From 84231a2e78c78d0f1d9731a4195627a242baf3cf Mon Sep 17 00:00:00 2001 From: Tim <0xtimc@gmail.com> Date: Sun, 8 May 2022 00:57:21 +0100 Subject: [PATCH] Add new script to CI --- .github/workflows/deploy.yml | 1 + fixSearchIndex.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5d74c92c..1520a972 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,7 @@ jobs: - name: Build the website run: | bash ./build.sh + ./fixSearchIndex.swift - name: Configure AWS credentials id: cred uses: aws-actions/configure-aws-credentials@v1 diff --git a/fixSearchIndex.swift b/fixSearchIndex.swift index de5e9077..78329a5c 100755 --- a/fixSearchIndex.swift +++ b/fixSearchIndex.swift @@ -29,7 +29,7 @@ struct SearchIndexDocs: Codable { let title: String } -let searchIndexPath = "site/4.0/search/search_index.json" +let searchIndexPath = "4.0/site/search/search_index.json" let fileURL = URL(fileURLWithPath: searchIndexPath) let indexData = try Data(contentsOf: fileURL)