Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

feat: Add [bare] polyproto-mls extension #171

feat: Add [bare] polyproto-mls extension

feat: Add [bare] polyproto-mls extension #171

name: Build and Deploy OpenAPI v3.1 specification
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"
cache-dependency-path: "./polyproto/package-lock.json"
- name: Install TypeSpec and compile project
run: |
cd ./polyproto/
npm install -g @typespec/compiler
npm install
tsp compile .
- name: Commit OpenAPI specification to repository
run: |
tree -L 2
mv ./polyproto/tsp-output/schema/openapi.polyproto.core.v1.0-beta.1.yaml ./build/core-openapi3.yaml
mv ./polyproto/tsp-output/schema/openapi.polyproto.chat.v0.1.0-alpha.0.yaml ./build/chat-openapi3.yaml
git add ./build/*
git commit -m "[bot]update openapi3 schema" || true
git push || true