mirror of https://github.com/vapor/docs.git
Add new script to CI
This commit is contained in:
parent
2967397019
commit
84231a2e78
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue