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