Add new script to CI

This commit is contained in:
Tim 2022-05-08 00:57:21 +01:00
parent 2967397019
commit 84231a2e78
No known key found for this signature in database
GPG Key ID: 20C7BF3D01EBE22E
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ jobs:
- name: Build the website - name: Build the website
run: | run: |
bash ./build.sh bash ./build.sh
./fixSearchIndex.swift
- name: Configure AWS credentials - name: Configure AWS credentials
id: cred id: cred
uses: aws-actions/configure-aws-credentials@v1 uses: aws-actions/configure-aws-credentials@v1

View File

@ -29,7 +29,7 @@ struct SearchIndexDocs: Codable {
let title: String 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 fileURL = URL(fileURLWithPath: searchIndexPath)
let indexData = try Data(contentsOf: fileURL) let indexData = try Data(contentsOf: fileURL)