Skip to content

Use relative base URL #3

Use relative base URL

Use relative base URL #3

Workflow file for this run

name: Deploy playground
permissions:
pages: write
id-token: write
on:
push:
branches: [main]
workflow_dispatch:
jobs:
docs:
name: Build and deploy playground
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Build playground
run: |
npm ci
npm run langium:generate
npm run build
npm run bundle
- name: Upload playground artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4