diff --git a/.github/workflows/algolia.yml b/.github/workflows/algolia.yml index 5d0bdf0f..9e04beec 100644 --- a/.github/workflows/algolia.yml +++ b/.github/workflows/algolia.yml @@ -30,10 +30,12 @@ jobs: hugo-algolia --config config/_default/config.yaml - name: Build Go binary - run: go build -o adjust-algolia-output tools/adjust-algolia-output/main.go + run: | + cd tools/adjust-algolia-output + go build -o /usr/local/bin/adjust-algolia-output - name: Adjust algolia.json using binary - run: ./adjust-algolia-output < ./public/algolia.json | jq > public/algolia_final.json + run: adjust-algolia-output < ./public/algolia.json | jq > public/algolia_final.json - name: Install Node.js uses: actions/setup-node@v2 diff --git a/.gitignore b/.gitignore index cfe03ca2..c28eaac1 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ nohup.out trace.out .idea node_modules -.hugo_build.lock \ No newline at end of file +.hugo_build.lock +adjust-algolia-output \ No newline at end of file