File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1414
1515jobs :
1616 build_and_deploy_job :
17- if : github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.action != 'closed')
17+ if :
18+ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name
19+ == 'pull_request' && github.event.action != 'closed')
1820 runs-on : ubuntu-latest
1921 name : Build and Deploy Job
2022 steps :
2123 - uses : actions/checkout@v4
2224 with :
2325 submodules : true
2426 lfs : false
25-
27+
2628 - name : Setup Node.js
2729 uses : actions/setup-node@v4
2830 with :
2931 node-version : ' 20'
3032 cache : ' yarn'
31-
33+
3234 - name : Install Bun
3335 run : npm install -g bun@1.2.23
34-
36+
3537 - name : Install dependencies
3638 run : bun install
37-
39+
3840 - name : Build app
3941 run : bun run build
4042 env :
4143 NODE_ENV : production
4244 APP_CONFIG : config/default.js
4345 PUBLIC_URL : /
4446 QUICK_BUILD : false
45-
47+
4648 - name : Copy staticwebapp.config.json to dist
4749 run : cp staticwebapp.config.json platform/app/dist/
48-
50+
4951 - name : Verify build output
5052 run : |
5153 echo "Build directory contents:"
5254 ls -la platform/app/dist/
5355 echo "Config files:"
5456 ls -la platform/app/dist/config/ || echo "No config directory"
55-
57+
5658 - name : Build And Deploy
5759 id : builddeploy
5860 uses : Azure/static-web-apps-deploy@v1
5961 with :
60- azure_static_web_apps_api_token : ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_HILL_0DD101903 }}
62+ azure_static_web_apps_api_token :
63+ ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_HILL_0DD101903 }}
6164 repo_token : ${{ secrets.GITHUB_TOKEN }}
6265 action : ' upload'
6366 skip_app_build : true
You can’t perform that action at this time.
0 commit comments