-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (44 loc) · 1.43 KB
/
deploy.yml
File metadata and controls
45 lines (44 loc) · 1.43 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
name: Deploy
concurrency: deploy
on:
workflow_call:
push:
branches:
- deploy
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: "24"
- run: npm install -g npm@latest
- run: npm ci
- run: npx update-browserslist-db@latest
- name: Build web-component
run: |
# create the bundles required for studio-web
# TODO: stop updating the bundle, keep the published one.
npx nx bundle web-component
- name: Specs Test
run: |
npx nx test:once studio-web
- name: Build
run: |
npx nx build studio-web --configuration=production
npx nx build studio-web --configuration=production --localize=fr --deleteOutputPath=false
npx nx build studio-web --configuration=production --localize=es --deleteOutputPath=false
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@9d877eea73427180ae43cf98e8914934fe157a1a # v4.7.6
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist/packages/studio-web # The folder the action should deploy.
force: false # rebase instead of force push by default
clean-exclude: |
pr-preview/
dev/