File tree Expand file tree Collapse file tree 3 files changed +301
-115
lines changed
src/quant_research_starter/frontend/cauweb Expand file tree Collapse file tree 3 files changed +301
-115
lines changed Original file line number Diff line number Diff line change 1+ name : Build Frontend
2+
3+ permissions :
4+ contents : write
5+
6+ on :
7+ push :
8+ branches :
9+ - main
10+
11+ jobs :
12+ populate-folder :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout Repository
17+ uses : actions/checkout@v4
18+ with :
19+ persist-credentials : true
20+ fetch-depth : 0
21+
22+ - name : Setup Nodejs
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : ' node'
26+
27+ - name : Cleanup
28+ run : |
29+ rm -rf ./node-modules
30+ rm -rf package.json
31+ rm -rf package-lock.json
32+
33+ - name : Install Dependencies and Build
34+ working-directory : src/quant_research_starter/frontend/cauweb
35+ run : |
36+ rm -rf dist
37+ npm install
38+ npm run build
39+
40+
41+ - name : Prepare Deploy Branch
42+ run : |
43+ git config user.name "github-actions[bot]"
44+ git config user.email "github-actions[bot]@users.noreply.github.com"
45+
46+ git checkout -B production
47+
48+ git add src
49+
50+ if git diff --cached --quiet; then
51+ echo "No changes to deploy."
52+ else
53+ git commit -m "deploy: update dist [skip ci]"
54+ git push origin production --force
55+ echo "🚀 Production updated!"
56+ fi
57+
58+
59+
You can’t perform that action at this time.
0 commit comments