Skip to content

Automated submodule update (docs.konghq.com) #115

Automated submodule update (docs.konghq.com)

Automated submodule update (docs.konghq.com) #115

Workflow file for this run

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
bundler-cache: true
ruby-version: .ruby-version
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
# 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