-
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (39 loc) · 1.09 KB
/
publish-homepage.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
39
40
41
42
43
44
45
46
47
48
name: Publish the homepage to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- "alpha"
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install the dependencies for Captain
run: npm i
- name: Install the dependencies for the homepage
run: npm i
working-directory: homepage
- name: Build the type docs for Captain
run: npm run typedoc:generate
- name: Build the homepage
run: npm run build
working-directory: homepage
- name: Deploy the homepage to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./homepage/out