-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (42 loc) · 1.43 KB
/
dev-preview.yml
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
name: Deploy dev preview
concurrency: dev-preview
on:
push:
branches:
- main
jobs:
deploy-dev-preview:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install
run: |
npm install
- name: Build web-component
run: |
npx nx build web-component
# create the bundles required for studio-web
npx nx bundle web-component
- name: Test
run: |
npx nx test:once studio-web
- name: Build
run: |
npx nx build studio-web --configuration=production --base-href=/dev/
npx nx build studio-web --configuration=production --base-href=/dev/ --localize=fr --deleteOutputPath=false
npx nx build studio-web --configuration=production --base-href=/dev/ --localize=es --deleteOutputPath=false
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
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
target-folder: dev
commit-message: "Deploy dev preview to gh-pages from @ ${{ github.repository }}@${{ github.sha }}"