-
Notifications
You must be signed in to change notification settings - Fork 35
44 lines (34 loc) · 939 Bytes
/
deploy.yml
File metadata and controls
44 lines (34 loc) · 939 Bytes
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
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Get sources
uses: actions/checkout@v3
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20.19.0'
- name: Restore npm cache
uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}-node-modules
- name: Install dependencies (npm ci)
run: npm ci --no-audit --no-fund
- name: Install Internal Package
uses: DevExpress/github-actions/install-internal-package@main
- name: Build
run: |
rm -rf dist
npx vite build --base "/devextreme-react-template/"
- name: Deploy
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
with:
branch: gh-pages
folder: dist
clean: true
target-folder: .