Use relative base URL #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |