Skip to content

Commit e984120

Browse files
committed
CI: fix deploy docs by removing NODE_ENV set to production
1 parent 338ee19 commit e984120

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/docs.yaml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ concurrency:
1818

1919
jobs:
2020
# Test documentation build
21-
test-docs:
21+
build-docs:
22+
if: github.ref != 'refs/heads/develop'
2223
runs-on: ubuntu-latest
2324
steps:
2425
- name: Checkout repository
@@ -36,7 +37,7 @@ jobs:
3637
sudo apt update
3738
sudo apt install -y protobuf-compiler
3839
39-
- name: Install dependencies
40+
- name: Install documentation dependencies
4041
run: make docs-install
4142

4243
- name: Setup Rust
@@ -45,7 +46,7 @@ jobs:
4546
components: rustfmt
4647
toolchain: nightly
4748

48-
- name: Test documentation build
49+
- name: Build documentation
4950
run: make docs-build
5051

5152
- name: Upload build artifacts for testing
@@ -59,7 +60,6 @@ jobs:
5960
# Deploy to GitHub Pages (only on develop branch)
6061
deploy:
6162
if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
62-
needs: [test-docs]
6363
runs-on: ubuntu-latest
6464
environment:
6565
name: github-pages
@@ -76,35 +76,32 @@ jobs:
7676
with:
7777
fetch-depth: 0 # Full history for versioning
7878

79+
- name: Setup Pages
80+
uses: actions/configure-pages@v4
81+
7982
- name: Setup Node.js
8083
uses: actions/setup-node@v4
8184
with:
8285
node-version: ${{ env.NODE_VERSION }}
8386
cache: 'npm'
8487
cache-dependency-path: website/package-lock.json
8588

86-
- name: Setup Pages
87-
uses: actions/configure-pages@v4
88-
8989
- name: Setup build dependencies
9090
run: |
9191
sudo apt update
9292
sudo apt install -y protobuf-compiler
9393
94+
- name: Install documentation dependencies
95+
run: make docs-install
96+
9497
- name: Setup Rust
9598
uses: dtolnay/rust-toolchain@stable
9699
with:
97100
components: rustfmt
98101
toolchain: nightly
99102

100-
- name: Install documentation dependencies
101-
run: make docs-install
102-
103103
- name: Build documentation
104-
run: |
105-
make docs-build
106-
env:
107-
NODE_ENV: production
104+
run: make docs-build
108105

109106
- name: Upload to GitHub Pages
110107
uses: actions/upload-pages-artifact@v3
@@ -118,7 +115,7 @@ jobs:
118115
# Create versioned documentation on tag creation
119116
version-docs:
120117
if: startsWith(github.ref, 'refs/tags/v')
121-
needs: [test-docs]
118+
needs: [build-docs]
122119
runs-on: ubuntu-latest
123120
steps:
124121
- name: Checkout repository

0 commit comments

Comments
 (0)