Skip to content

Commit c527a58

Browse files
committed
fix: wire AG Grid enterprise license secret into deploys
Use the new repository secret name for frontend builds and document the matching local Vite env variable so deployment and local setup stay aligned. Made-with: Cursor
1 parent 33dbed6 commit c527a58

4 files changed

Lines changed: 25 additions & 26 deletions

File tree

.github/workflows/deploy-foil.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
env:
6060
NODE_OPTIONS: --max-old-space-size=4096
6161
BASE_URL: ${{ env.BASE_URL }}
62-
VITE_AG_GRID_LICENSE_KEY: ${{ secrets.AG_GRID_LICENSE_KEY }}
62+
VITE_AG_GRID_LICENSE_KEY: ${{ secrets.AG_GRID_ENTERPRISE_LICENSE_KEY }}
6363

6464
- name: Configure AWS credentials
6565
uses: aws-actions/configure-aws-credentials@v4

.github/workflows/deploy.yml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- "docs-site/**"
8+
- ".github/workflows/deploy.yml"
69
workflow_dispatch:
710

811
permissions:
@@ -21,45 +24,28 @@ jobs:
2124
- name: Checkout
2225
uses: actions/checkout@v5
2326

24-
- name: Setup Rust
25-
uses: dtolnay/rust-toolchain@stable
26-
27-
- name: Install wasm-pack
28-
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
29-
30-
- name: Build WASM
31-
run: |
32-
cd crates/rustfoil-wasm
33-
wasm-pack build --target web --release --out-dir ../../pkg
34-
3527
- name: Setup Node
3628
uses: actions/setup-node@v5
3729
with:
3830
node-version: 20
3931
cache: npm
40-
cache-dependency-path: flexfoil-ui/package-lock.json
32+
cache-dependency-path: docs-site/package-lock.json
4133

42-
- name: Install dependencies
43-
run: |
44-
cd flexfoil-ui
45-
npm ci
34+
- name: Install docs dependencies
35+
working-directory: ./docs-site
36+
run: npm ci
4637

47-
- name: Build frontend
48-
run: |
49-
cd flexfoil-ui
50-
npm run build
51-
env:
52-
NODE_OPTIONS: --max-old-space-size=4096
53-
BASE_URL: /flexfoil/
54-
VITE_AG_GRID_LICENSE_KEY: ${{ secrets.AG_GRID_LICENSE_KEY }}
38+
- name: Build docs
39+
working-directory: ./docs-site
40+
run: npm run build
5541

5642
- name: Setup Pages
5743
uses: actions/configure-pages@v4
5844

5945
- name: Upload artifact
6046
uses: actions/upload-pages-artifact@v3
6147
with:
62-
path: flexfoil-ui/dist
48+
path: docs-site/build
6349

6450
deploy:
6551
environment:

flexfoil-ui/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_AG_GRID_LICENSE_KEY=your-ag-grid-enterprise-license-key

flexfoil-ui/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
44

5+
## AG Grid Enterprise License
6+
7+
For local development, create `flexfoil-ui/.env.local` with:
8+
9+
```bash
10+
VITE_AG_GRID_LICENSE_KEY=your-ag-grid-enterprise-license-key
11+
```
12+
13+
For GitHub Actions deployments, add the repository secret
14+
`AG_GRID_ENTERPRISE_LICENSE_KEY`. The workflows map that secret into the
15+
frontend build as `VITE_AG_GRID_LICENSE_KEY`.
16+
517
Currently, two official plugins are available:
618

719
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh

0 commit comments

Comments
 (0)