Skip to content

Deploy to Server

Deploy to Server #4

Workflow file for this run

name: Deploy to Server
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Dependencies
run: npm install
- name: Build Docs
run: npm run build
- name: Deploy to Server
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.DOCS_FTP_SERVER }}
username: ${{ secrets.DOCS_FTP_USERNAME }}
password: ${{ secrets.DOCS_FTP_PASSWORD }}
protocol: ftps
port: 21
local-dir: build/
dangerous-clean-slate: true