@@ -12,65 +12,8 @@ concurrency:
1212 cancel-in-progress : false
1313
1414jobs :
15- build :
16- name : Build Documentation
17- runs-on : ubuntu-latest
18- timeout-minutes : 90
19- steps :
20- - name : Checkout code
21- uses : actions/checkout@v4
22-
23- - name : Setup Node.js
24- uses : actions/setup-node@v4
25- with :
26- node-version : ' 18'
27- cache : ' npm'
28-
29- - name : Cache Docusaurus build
30- uses : actions/cache@v4
31- with :
32- path : |
33- .docusaurus
34- .cache
35- build/.cache
36- key : ${{ runner.os }}-docusaurus-build-${{ github.ref_name }}-${{ hashFiles('**/package-lock.json', '**/docusaurus.config.js', 'docs/**/*.md', 'docs/**/*.mdx') }}
37- restore-keys : |
38- ${{ runner.os }}-docusaurus-build-${{ github.ref_name }}-
39- ${{ runner.os }}-docusaurus-build-
40-
41- - name : Cache webpack
42- uses : actions/cache@v4
43- with :
44- path : node_modules/.cache
45- key : ${{ runner.os }}-webpack-${{ github.ref_name }}-${{ hashFiles('**/package-lock.json') }}
46- restore-keys : |
47- ${{ runner.os }}-webpack-${{ github.ref_name }}-
48- ${{ runner.os }}-webpack-
49-
50- - name : Install dependencies
51- run : npm ci
52-
53- - name : Build site
54- run : npm run build
55-
56- - name : Validate build output
57- run : |
58- if [ ! -d "build" ]; then
59- echo "❌ Build directory not found!"
60- exit 1
61- fi
62- echo "✅ Build directory exists with $(find build -type f | wc -l) files"
63-
64- - name : Upload build artifacts
65- uses : actions/upload-artifact@v4
66- with :
67- name : build-${{ github.run_id }}
68- path : build/
69- retention-days : 1
70-
7115 deploy-dev :
7216 name : Deploy to Development
73- needs : build
7417 runs-on : ubuntu-latest
7518 environment : Development
7619 # ONLY run for dev branch pushes or PRs targeting dev
7922 deployments : write
8023 pull-requests : write
8124 steps :
82- - name : Download build artifacts
83- uses : actions/download-artifact@v4
84- with :
85- name : build-${{ github.run_id }}
86- path : build/
87-
88- - name : Deploy to Render Dev
25+ - name : Trigger Render Deploy
8926 id : deploy
9027 uses :
JorgeLNJunior/[email protected] 9128 with :
15188
15289 deploy-prod :
15390 name : Deploy to Production
154- needs : build
15591 runs-on : ubuntu-latest
15692 environment : Production
15793 # ONLY run for main branch pushes or PRs targeting main
@@ -160,13 +96,7 @@ jobs:
16096 deployments : write
16197 pull-requests : write
16298 steps :
163- - name : Download build artifacts
164- uses : actions/download-artifact@v4
165- with :
166- name : build-${{ github.run_id }}
167- path : build/
168-
169- - name : Deploy to Render Prod
99+ - name : Trigger Render Deploy
170100 id : deploy
171101 uses :
JorgeLNJunior/[email protected] 172102 with :
0 commit comments