Skip to content

LSP and DAP communication refactor (#335) #77

LSP and DAP communication refactor (#335)

LSP and DAP communication refactor (#335) #77

name: 'Deploy playground to GitHub Pages'
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'src/**'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
deployments: write
jobs:
deploy:
runs-on: ubuntu-latest
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Clone the repo
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Run tests
run: dotnet test ./src
- name: Publish with dotnet
working-directory: 'src/Draco.Editor.Web'
run: dotnet publish --configuration Release --output build
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: 'src/Draco.Editor.Web/build/wwwroot'
- name: Deploy GitHub Pages site
uses: actions/[email protected]