Skip to content

docs: i18n

docs: i18n #10

Workflow file for this run

name: gh-pages
on:
workflow_dispatch: # add manually button
push:
branches:
- main
paths:
- '.github/workflows/**'
- 'website/**'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
cache-dependency-path: website/yarn.lock
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build
run: |
cd website
yarn
yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./website/build"
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2