1name: build_and_publish
2
3on:
4 push:
5 branches:
6 - trunk
7 tags:
8 - v*
9 pull_request:
10
11permissions:
12 contents: write
13
14jobs:
15 deploy:
16 runs-on: ubuntu-latest
17 steps:
18 - uses: actions/checkout@v4
19 with:
20 fetch-depth: 0
21
22 - uses: actions/setup-node@v4
23 with:
24 node-version: 20
25
26 - name: Install dependencies
27 working-directory: spiceaidocs
28 run: npm install
29
30 - name: Build website
31 working-directory: spiceaidocs
32 run: npm run build
33
34 - name: Deploy
35 if: ${{ github.event_name != 'pull_request' && startswith(github.ref, 'refs/tags/v') }}
36 uses: peaceiris/actions-gh-pages@v3
37 with:
38 github_token: ${{ secrets.GITHUB_TOKEN }}
39 publish_dir: ./spiceaidocs/build
40 cname: docs.spiceai.org
41
1name: build_and_publish
2
3on:
4 push:
5 branches:
6 - trunk
7 tags:
8 - v*
9 pull_request:
10
11permissions:
12 contents: write
13
14jobs:
15 deploy:
16 runs-on: ubuntu-latest
17 steps:
18 - uses: actions/checkout@v4
19 with:
20 fetch-depth: 0
21
22 - uses: actions/setup-node@v4
23 with:
24 node-version: 20
25
26 - name: Install dependencies
27 working-directory: spiceaidocs
28 run: npm install
29
30 - name: Build website
31 working-directory: spiceaidocs
32 run: npm run build
33
34 - name: Deploy
35 if: ${{ github.event_name != 'pull_request' && startswith(github.ref, 'refs/tags/v') }}
36 uses: peaceiris/actions-gh-pages@v3
37 with:
38 github_token: ${{ secrets.GITHUB_TOKEN }}
39 publish_dir: ./spiceaidocs/build
40 cname: docs.spiceai.org
41