mirror of
https://github.com/jellyfin/jellyfin-sdk-typescript.git
synced 2024-11-23 05:59:44 +00:00
Add docs publish workflow
This commit is contained in:
parent
a9e03e3edb
commit
1a362dddcf
42
.github/workflows/sdk-docs.yaml
vendored
Normal file
42
.github/workflows/sdk-docs.yaml
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
name: SDK Documentation Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Documentation
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
||||
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3.4.1
|
||||
with:
|
||||
node-version: 16
|
||||
- uses: actions/configure-pages@45efe609374726fd94570f0e5a4c32f41675e823 # tag=v2
|
||||
- name: Run build
|
||||
run: |
|
||||
npm ci --no-audit
|
||||
npm run docs
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@a597aecd27af1cf14095ccaa29169358e3d91e28 # tag=v1
|
||||
with:
|
||||
path: ./docs
|
||||
|
||||
deploy:
|
||||
name: Deploy to GitHub Pages
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@c2379ec5e719a934ec613038d081879b58c9d7df # tag=v1
|
Loading…
Reference in New Issue
Block a user