File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Builds client/packages/lowcoder-sdk-webpack-bundle and deploys its dist/ folder to Netlify.
2+ #
3+ # Deploy uses --no-build so Netlify CLI does not run the site UI "build command" (e.g. expo).
4+ # The webpack bundle is built in the prior CI step.
5+ #
6+ # Repository secrets (Netlify: Site settings → General → Site details → Site ID;
7+ # User settings → Applications → Personal access tokens):
8+ # NETLIFY_AUTH_TOKEN — Netlify personal access token
9+ # NETLIFY_SITE_ID — Site API ID for the Netlify site
10+
11+ name : Deploy SDK Webpack Bundle to Netlify
12+
13+ on :
14+ push :
15+ branches :
16+ - main
17+
18+ permissions :
19+ contents : read
20+
21+ concurrency :
22+ group : deploy-sdk-webpack-netlify-${{ github.ref }}
23+ cancel-in-progress : true
24+
25+ jobs :
26+ deploy :
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : actions/checkout@v3
30+
31+ - name : Use Node.js
32+ uses : actions/setup-node@v3
33+ with :
34+ node-version : 20.x
35+ cache : yarn
36+ cache-dependency-path : client/yarn.lock
37+
38+ - name : Install dependencies
39+ uses : borales/actions-yarn@v4.2.0
40+ with :
41+ cmd : install
42+ dir : client
43+
44+ - name : Build lowcoder-sdk-webpack-bundle
45+ uses : borales/actions-yarn@v4.2.0
46+ with :
47+ cmd : workspace lowcoder-sdk-webpack-bundle build
48+ dir : client
49+
50+ - name : Deploy dist to Netlify
51+ working-directory : client/packages/lowcoder-sdk-webpack-bundle
52+ env :
53+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
54+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SDK_SITE_ID }}
55+ run : npx --yes netlify-cli deploy --prod --dir=dist --no-build
You can’t perform that action at this time.
0 commit comments