Skip to content

Bump tar from 7.5.16 to 7.5.22 in /spec (#394) #1

Bump tar from 7.5.16 to 7.5.22 in /spec (#394)

Bump tar from 7.5.16 to 7.5.22 in /spec (#394) #1

Workflow file for this run

name: Docs
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 20
- name: Generate OpenAPI spec from TypeSpec
working-directory: spec
run: |
npm install
npx tsp compile .
- name: Install docfx
run: dotnet tool install -g docfx
- name: Build docfx site
working-directory: docs
run: docfx docfx.json
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v5
with:
path: docs/_site
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5