diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 98a7e3e..84a0ee5 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -14,6 +14,12 @@ env: ARTIFACT: 'webHelpIN2-all.zip' DOCKER_VERSION: '241.18775' ALGOLIA_KEY: '${{ secrets.ALGOLIA_KEY }}' + ALGOLIA_ARTIFACT: 'algolia-indexes-IN.zip' + ALGOLIA_APP_NAME: 'SN4YR0P4XX' + ALGOLIA_INDEX_NAME: 'phote-wiki-index' + CONFIG_JSON_PRODUCT: 'IN' + CONFIG_JSON_VERSION: '1.0' + jobs: build: @@ -38,6 +44,7 @@ jobs: path: | artifacts/${{ env.ARTIFACT }} artifacts/report.json + artifacts/${{ env.ALGOLIA_ARTIFACT }} retention-days: 7 test: needs: build @@ -79,3 +86,24 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + publish-indexes: + needs: [build, test, deploy] + runs-on: ubuntu-latest + container: + image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-3 + steps: + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: docs + - name: Unzip artifact + run: | + unzip -O UTF-8 -qq '${{ env.ALGOLIA_ARTIFACT }}' -d algolia-indexes + env algolia-key='${{env.ALGOLIA_KEY}}' java -jar /opt/builder/help-publication-agent.jar \ + update-index \ + --application-name '${{env.ALGOLIA_APP_NAME}}' \ + --index-name '${{env.ALGOLIA_INDEX_NAME}}' \ + --product '${{env.CONFIG_JSON_PRODUCT}}' \ + --version '${{env.CONFIG_JSON_VERSION}}' \ + --index-directory algolia-indexes/ \ + 2>&1 | tee algolia-update-index-log.txt \ No newline at end of file diff --git a/Writerside/cfg/buildprofiles.xml b/Writerside/cfg/buildprofiles.xml index 161f621..120fd17 100644 --- a/Writerside/cfg/buildprofiles.xml +++ b/Writerside/cfg/buildprofiles.xml @@ -8,6 +8,9 @@ true strawberry custom.css + SN4YR0P4XX + phote-wiki-index + 197c04ad860d92349bae70ab36cf4008 diff --git "a/Writerside/topics/\354\275\224\353\223\234-\354\273\250\353\262\244\354\205\230.md" "b/Writerside/topics/\354\275\224\353\223\234-\354\273\250\353\262\244\354\205\230.md" index a732e71..8407b00 100644 --- "a/Writerside/topics/\354\275\224\353\223\234-\354\273\250\353\262\244\354\205\230.md" +++ "b/Writerside/topics/\354\275\224\353\223\234-\354\273\250\353\262\244\354\205\230.md" @@ -30,6 +30,10 @@ disabled_rules = no-wildcard-imports, import-ordering, comment-spacing + + pre-commit 설치하기 + pip3 install pre-commit + plugin에서 **KtLint** install하기
pre-commit 설치하기
pip3 install pre-commit
plugin에서 **KtLint** install하기