File tree Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy one-platform to /one-platform on main
2+
3+ on :
4+ push :
5+ branches : ["one-platform"]
6+
7+ permissions :
8+ contents : write
9+
10+ jobs :
11+ build-and-deploy :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout one-platform
15+ uses : actions/checkout@v4
16+ with :
17+ ref : one-platform
18+ path : one
19+ - name : Setup Node
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : 20
23+ cache : npm
24+ cache-dependency-path : one/package-lock.json
25+ - name : Install deps
26+ working-directory : one
27+ env :
28+ ASSET_PASSWORD : ${{ secrets.ASSET_PASSWORD }}
29+ ASSET_INIT_VECTOR : ${{ secrets.ASSET_INIT_VECTOR }}
30+ run : npm ci
31+ - name : Build
32+ working-directory : one
33+ run : npm run build
34+ - name : Checkout main
35+ uses : actions/checkout@v4
36+ with :
37+ ref : main
38+ path : main
39+ - name : Copy build into main/one-platform and push
40+ run : |
41+ rm -rf main/one-platform/*
42+ mkdir -p main/one-platform
43+ cp -R one/public/* main/one-platform/
44+
45+ cd main
46+ git config user.name "github-actions[bot]"
47+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
48+ git add one-platform
49+ git commit -m "deploy(one-platform): $(date -u +%Y-%m-%dT%H:%M:%SZ)" || echo "No changes to commit"
50+ git push
Original file line number Diff line number Diff line change 11export const appConfig : AppConfig = {
22 title : "Design System" ,
33 hostname : "https://db-ux-design-system.github.io" ,
4- basePath : "" ,
4+ basePath : "/one-platform/ " ,
55 sitemapBlacklist : [ ] ,
66 language : "en" ,
77} ;
You can’t perform that action at this time.
0 commit comments