Skip to content

chore: update demo

chore: update demo #3

Workflow file for this run

name: Deploy Snapshot
on:
push:
branches: [feature/test-deploy-demo]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@v3
- name: 'Cache node modules'
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node 18.x
uses: actions/setup-node@v3
with:
node-version: 18.10.0
- name: npm install and npm run build
run: |
npm i --legacy-peer-deps
npm run production
tar -cvf dist.tar dist/*
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.OWEB_CLOUD_DEMOS_HOST }}
username: ${{ secrets.OWEB_CLOUD_DEMOS_USERNAME }}
password: ${{ secrets.OWEB_CLOUD_DEMOS_PASSWORD }}
protocol: ftps
local-dir: ftp-demos/playground15-snapshot/