Skip to content

fix: preserve ZWNJ character for Farsi text support (#103) #93

fix: preserve ZWNJ character for Farsi text support (#103)

fix: preserve ZWNJ character for Farsi text support (#103) #93

name: Deploy Playground to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Copy dist to playground
run: mkdir -p playground/dist && cp -r dist/* playground/dist/
- name: Update script reference in HTML
run: sed -i 's|\.\.\/dist\/|dist\/|g' playground/index.html
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'playground'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4