-
Notifications
You must be signed in to change notification settings - Fork 81
57 lines (48 loc) · 1.18 KB
/
build.yml
File metadata and controls
57 lines (48 loc) · 1.18 KB
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
name: Build And Publish Docs
on:
push:
branches:
- main
paths:
- 'dev/**'
- 'images/**'
- 'themes.json'
- 'gulpfile.js'
- 'gulpconfig.js'
- 'package.json'
- 'package-lock.json'
- 'dev/config/**'
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
permissions:
contents: write
concurrency:
group: build-and-publish-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm test
- run: npm run build
- name: Commit generated docs
shell: bash
run: |
if git diff --quiet -- docs; then
echo "No generated docs changes to commit."
exit 0
fi
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add docs
git commit -m "ci(build): compile and deploy"
git push