-
-
Notifications
You must be signed in to change notification settings - Fork 46
67 lines (54 loc) · 1.88 KB
/
deploy.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Deploy
on:
push:
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
branches:
- master
concurrency:
group: seaql.github.io
cancel-in-progress: false
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn set version 3.6.1
- uses: actions/cache@v3
with:
key: ${{ github.repository }}-${{ github.ref_name }}
path: |
~/.yarn
SeaORM/node_modules
SeaORM/.docusaurus
SeaORM/build
Blog/node_modules
Blog/.docusaurus
Blog/build
Seaography/node_modules
Seaography/.docusaurus
Seaography/build
SeaStreamer/node_modules
SeaStreamer/.docusaurus
SeaStreamer/build
- id: git-log
run: echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT
- run: echo $GITHUB_OUTPUT
- if: ${{ contains(steps.git-log.outputs.message, '[SeaORM]') || contains(steps.git-log.outputs.message, '[full]') }}
run: sh build-site.sh SeaORM SeaORM
- if: ${{ contains(steps.git-log.outputs.message, '[Blog]') || contains(steps.git-log.outputs.message, '[full]') }}
run: sh build-site.sh Blog blog
- if: ${{ contains(steps.git-log.outputs.message, '[Seaography]') || contains(steps.git-log.outputs.message, '[full]') }}
run: sh build-site.sh Seaography Seaography
- if: ${{ contains(steps.git-log.outputs.message, '[SeaStreamer]') || contains(steps.git-log.outputs.message, '[full]') }}
run: sh build-site.sh SeaStreamer SeaStreamer
- uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs
clean: false
clean-exclude: preview