Skip to content

Localizations sync with #1166 #5398

Localizations sync with #1166

Localizations sync with #1166 #5398

Workflow file for this run

name: Build
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "site/**"
pull_request:
types: ["opened", "edited", "synchronize"]
paths:
- "site/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Deno
uses: denoland/setup-deno@main
with:
deno-version: "v2.x"
- name: Generate files
run: deno task setup
working-directory: site/
- name: Build site
run: deno task build
working-directory: site/
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3
with:
publish-dir: "./site/docs/.vitepress/dist"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: ${{ github.event.pull_request.title }}
enable-pull-request-comment: true
enable-commit-comment: false
overwrites-pull-request-comment: true
fails-without-credentials: false
netlify-config-path: ./site/netlify.toml
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 5