File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - closed
77 branches :
88 - master
9- - development
10-
11- concurrency :
12- group : " pages"
13- cancel-in-progress : false
149
1510jobs :
1611 build :
17- # Modified condition to handle both direct pushes and merged PRs
18- if : github.event_name == 'push' || github.event.pull_request.merged == true
19- runs-on : ubuntu-latest
20-
21- steps :
22- - name : Checkout code
23- uses : actions/checkout@v4
24-
25- - name : Generate index files
26- run : |
27- cd public/data
28- for dir in */; do
29- if [ -d "$dir" ]; then
30- cd "$dir"
31- find . -maxdepth 1 -name "*.md" -exec basename {} \; | \
32- jq -R -s -c 'split("\n")[:-1]' > index.json
33- cd ..
34- fi
35- done
36-
37- - name : Set up Node.js
38- uses : actions/setup-node@v4
39- with :
40- node-version : ' 18'
41- cache : ' npm' # Add caching for faster installations
4212
43- - name : Setup Pages
44- uses : actions/configure-pages@v5
45-
46- - name : Install dependencies
47- run : npm ci # Use ci instead of install for cleaner, more reliable builds
48-
49- - name : Build project
50- run : npm run build
51-
52- - name : Upload artifact
53- uses : actions/upload-pages-artifact@v3
54- with :
55- path : ./build
56-
57- deploy :
58- environment :
59- name : github-pages
60- url : ${{ steps.deployment.outputs.page_url }}
6113 runs-on : ubuntu-latest
62- needs : build
63- permissions :
64- pages : write
65- id-token : write
14+
6615 steps :
67- - name : Deploy to GitHub Pages
68- id : deployment
69- uses : actions/deploy-pages@v4
16+ - uses : actions/checkout@v3
17+
18+ - name : Build and Deploy React app to GitHub Pages
19+ uses : omkartapale/react-deployment-gh-pages@v1.0.0
You can’t perform that action at this time.
0 commit comments