@@ -18,7 +18,8 @@ concurrency:
18
18
19
19
jobs :
20
20
# Test documentation build
21
- test-docs :
21
+ build-docs :
22
+ if : github.ref != 'refs/heads/develop'
22
23
runs-on : ubuntu-latest
23
24
steps :
24
25
- name : Checkout repository
36
37
sudo apt update
37
38
sudo apt install -y protobuf-compiler
38
39
39
- - name : Install dependencies
40
+ - name : Install documentation dependencies
40
41
run : make docs-install
41
42
42
43
- name : Setup Rust
45
46
components : rustfmt
46
47
toolchain : nightly
47
48
48
- - name : Test documentation build
49
+ - name : Build documentation
49
50
run : make docs-build
50
51
51
52
- name : Upload build artifacts for testing
59
60
# Deploy to GitHub Pages (only on develop branch)
60
61
deploy :
61
62
if : github.ref == 'refs/heads/develop' && github.event_name == 'push'
62
- needs : [test-docs]
63
63
runs-on : ubuntu-latest
64
64
environment :
65
65
name : github-pages
@@ -76,35 +76,32 @@ jobs:
76
76
with :
77
77
fetch-depth : 0 # Full history for versioning
78
78
79
+ - name : Setup Pages
80
+ uses : actions/configure-pages@v4
81
+
79
82
- name : Setup Node.js
80
83
uses : actions/setup-node@v4
81
84
with :
82
85
node-version : ${{ env.NODE_VERSION }}
83
86
cache : ' npm'
84
87
cache-dependency-path : website/package-lock.json
85
88
86
- - name : Setup Pages
87
- uses : actions/configure-pages@v4
88
-
89
89
- name : Setup build dependencies
90
90
run : |
91
91
sudo apt update
92
92
sudo apt install -y protobuf-compiler
93
93
94
+ - name : Install documentation dependencies
95
+ run : make docs-install
96
+
94
97
- name : Setup Rust
95
98
uses : dtolnay/rust-toolchain@stable
96
99
with :
97
100
components : rustfmt
98
101
toolchain : nightly
99
102
100
- - name : Install documentation dependencies
101
- run : make docs-install
102
-
103
103
- name : Build documentation
104
- run : |
105
- make docs-build
106
- env :
107
- NODE_ENV : production
104
+ run : make docs-build
108
105
109
106
- name : Upload to GitHub Pages
110
107
uses : actions/upload-pages-artifact@v3
@@ -118,7 +115,7 @@ jobs:
118
115
# Create versioned documentation on tag creation
119
116
version-docs :
120
117
if : startsWith(github.ref, 'refs/tags/v')
121
- needs : [test -docs]
118
+ needs : [build -docs]
122
119
runs-on : ubuntu-latest
123
120
steps :
124
121
- name : Checkout repository
0 commit comments