Skip to content

Update docs for the i18n changes in KordEx 2.4.0. #196

Update docs for the i18n changes in KordEx 2.4.0.

Update docs for the i18n changes in KordEx 2.4.0. #196

Workflow file for this run

name: "Build & Deploy"
on:
push:
branches:
- "root"
workflow_dispatch:
permissions:
contents: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "pnpm"
cache-dependency-path: "pnpm-lock.yaml"
- name: Install Dependencies
run: pnpm i
- name: Build Site
run: pnpm run build
- name: Upload Build Site
uses: actions/upload-artifact@v4
with:
name: docs
path: |
build/
retention-days: 7
deploy:
# Requires the build job results
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Switch branch
run: |
git checkout --orphan deployment
- uses: actions/download-artifact@v4
with:
name: docs
path: "./downloaded-docs/"
- name: Copy files, commit and push
# TODO: Cloudflare like the site repo
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions-user@users.noreply.github.com"
sudo rm -rf .docusaurus .github .idea about bots build diagrams i18n misc node_modules src static .editorconfig .gitignore ./*.*
cp -r downloaded-docs/* .
sudo rm -rf downloaded-docs/
git add .
git commit -am "Automatic deployment"
git push --force origin deployment