-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (46 loc) · 1.2 KB
/
deploy-data.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
44
45
46
47
48
49
50
51
52
53
name: deploy-data
on:
workflow_run:
workflows: [CI-TEST]
types: [completed]
branches: [main]
push:
branches:
- main
paths:
- "packages/dataprep/**"
- "data/**"
jobs:
deploy:
runs-on: ubuntu-latest
env:
PUBLIC_URL: "/lasso"
steps:
- name: Set timezone
uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Paris"
- name: Checkout
uses: actions/checkout@v2
- name: Fix node version
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node_modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Dataprep install
run: |
npm install
- name: Generate data
run: |
cd packages/dataprep
npm run exec
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: packages/client/public/data # The folder the action should deploy.
target-folder: data