-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (48 loc) · 1.49 KB
/
doc-site-build-only.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
name: "[Doc][A] Build Only"
on:
push:
branches:
- "**"
jobs:
build-docusaurus:
runs-on: ubuntu-latest
strategy:
matrix:
scala:
- { version: "2.13.8", binary-version: "2.13", java-version: "17" }
node:
- { version: "16.15.0" }
steps:
- uses: actions/checkout@v4
- uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.scala.java-version }}
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node.version }}
registry-url: 'https://registry.npmjs.org'
- name: Cache SBT
uses: actions/[email protected]
with:
path: |
~/.ivy2/cache
~/.cache/coursier
~/.sbt
key: ${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }}
restore-keys: |
${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}-
- name: Cache npm
uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Render markdown and build website
run: |
sbt clean \
docusaurGenerateAlgoliaConfigFile \
docusaurGenerateGoogleAnalyticsConfigFile \
docusaurInstall \
docusaurCleanBuild \
docusaurBuild