Skip to content

deploy-data

deploy-data #293

Workflow file for this run

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