From 8eaf2fc2a6011fca4b1dd01642c75a30e3701801 Mon Sep 17 00:00:00 2001 From: Fabian Rodriguez Date: Wed, 24 Jul 2024 10:09:28 +0200 Subject: [PATCH 1/2] Bump docs submodule --- docs.konghq.com | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs.konghq.com b/docs.konghq.com index ac1b4ba..e0dcf37 160000 --- a/docs.konghq.com +++ b/docs.konghq.com @@ -1 +1 @@ -Subproject commit ac1b4bacf31c08d84c848b419774247399641ff1 +Subproject commit e0dcf3716a7511364cfca0afb8d305f0423fca06 From c75bfecce6169f5ac4d927a4b736383195de931e Mon Sep 17 00:00:00 2001 From: Fabian Rodriguez Date: Mon, 5 Aug 2024 10:19:06 +0200 Subject: [PATCH 2/2] Add github action that builds blocks --- .github/workflows/build-docs.yml | 66 ++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/build-docs.yml diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml new file mode 100644 index 0000000..af8da5e --- /dev/null +++ b/.github/workflows/build-docs.yml @@ -0,0 +1,66 @@ +name: Build Docs +on: + pull_request: + types: [synchronize, ready_for_review, opened] + +concurrency: + cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + +env: + VITE_PORTAL_API_URL: ${{ vars.VITE_PORTAL_API_URL }} + BUNDLE_GITHUB__COM: x-access-token:${{ secrets.BUNDLE_GITHUB__COM }} + TRANSLATED_CONTENT_PATH: '../../_translated_content' + JEKYLL_CONFIG_FILES: '../_translated_content/ja-JP/jekyll.yml,../_translated_content/ja-JP/jekyll-dev.yml' + LOCALE: 'ja-JP' + +jobs: + build-docs: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + # Configure Ruby to build Jekyll site + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + working-directory: ./docs.konghq.com + ruby-version: 3.3 + + - name: Ruby gem cache + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- + - name: Bundle Setup + run: bundle config path ${{ github.workspace }}/vendor/bundle + - name: Bundle Install + run: bundle install --jobs 4 --retry 3 --gemfile=./docs.konghq.com/Gemfile + # Configure Node to build assets + - uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Cache node modules + uses: actions/cache@v4 + env: + cache-name: cache-node-modules + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + + - run: | + cd ./docs.konghq.com + npm ci + + # Build the Docs + - name: Build Docs + run: | + cd ./docs.konghq.com + exe/build