Skip to content

chore: fix build

chore: fix build #1683

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build and deploy Docs
on:
workflow_dispatch:
push:
branches:
- release/*
env:
VERSION: '1.3'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
scope: '@leanup'
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install
run: npm ci
- name: Build
run: npm run docs:build
- name: Prepare deploy
run: |
mkdir dist
mv docs/.vitepress/dist dist/${VERSION}
ls -la dist/${VERSION}
- name: Deliver
uses: SamKirkland/FTP-Deploy-Action@3.1.1
with:
ftp-server: ${{ secrets.FTP_HOST }}
ftp-username: ${{ secrets.FTP_USERNAME }}
ftp-password: ${{ secrets.FTP_PASSWORD }}
known-hosts: ${{ secrets.FTP_KNOWN_HOSTS }}
local-dir: dist/
git-ftp-args: --all