Skip to content

Commit

Permalink
Added deploy action for automated build and deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
aelrahmanashraf committed Aug 13, 2024
1 parent 3620d1b commit ae4e8e3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/server-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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

0 comments on commit ae4e8e3

Please sign in to comment.