mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
34 lines
780 B
YAML
34 lines
780 B
YAML
# ci.yml file for GitHub Actions
|
|
name: CI
|
|
|
|
on: [push]
|
|
|
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
permissions:
|
|
contents: write
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build_docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
working-directory: ./client
|
|
|
|
- name: Create the docs directory locally in CI
|
|
run: npx typedoc --out ../docs/client @types/*.d.ts src/**/*.ts
|
|
working-directory: ./client
|
|
|
|
- name: Deploy 🚀
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
folder: docs
|