-
-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (34 loc) · 1.15 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy Docs
on:
push:
branches:
- main
paths:
- "packages/**"
- "typedoc.json"
workflow_dispatch:
jobs:
docs:
name: Deploy Docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build project
run: bun run build
- name: Build the docs
run: bun run docs
- name: Commit the Docs
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: "docs"
destination-github-username: "github-actions[bot]"
destination-repository-username: "guildedjs"
destination-repository-name: "guildedjs.github.io"
target-branch: "main"
user-email: 41898282+github-actions[bot]@users.noreply.github.com