diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index faceace5..85c39fc3 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -29,6 +29,11 @@ jobs: if: github.event_name != 'pull_request' runs-on: ubuntu-latest steps: + - uses: jwsi/secret-parser@v1 + with: + filename: docusaurus.config.json + secret-name: ALGOLIA_API_KEY + secret-value: ${{ secrets.ALGOLIA_API_KEY }} - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: diff --git a/docusaurus.config.js b/docusaurus.config.js index aca3c801..e41db5b8 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -108,7 +108,7 @@ module.exports = { trackingID: "UA-104631777-1" }, algolia: { - apiKey: "zz", + apiKey: "${{ secrets.ALGOLIA_API_KEY }}", indexName: "swizzin", }, },