Skip to content

remove live-server dep #2

remove live-server dep

remove live-server dep #2

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run build
- name: Archive built docs html
uses: actions/upload-artifact@v4
with:
name: index.html
path: dist/index.html
- name: Archive built openapi spec
uses: actions/upload-artifact@v4
with:
name: openapi.yaml
path: tsp-output/@typespec/openapi3/openapi.yaml
# deploy:
# needs: build
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# steps:
# - name: Download artifacts
# uses: actions/download-artifact@v4
# with:
# name: index.html
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# # Upload entire repository
# path: './'
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4