mirror of
https://github.com/doukutsu-rs/api-docs.git
synced 2026-08-24 13:05:13 -07:00
32 lines
852 B
YAML
32 lines
852 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master # Set a branch to deploy
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
repository: doukutsu-rs/doukutsu-rs
|
|
submodules: false
|
|
fetch-depth: 1
|
|
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v2.1.4
|
|
|
|
- name: Build
|
|
run: npx -p typescript -p typedoc typedoc --readme none --out ./public --tsconfig ./src/scripting/tsconfig.json ./src/scripting/doukutsu.d.ts
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./public
|
|
branch: gh-pages
|
|
user_name: "github-actions[bot]"
|
|
user_email: "github-actions[bot]@users.noreply.github.com"
|