Skip to content

Build and Deploy

Build and Deploy #12

name: Build and Deploy
on:
# push:
# branches:
# - main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build-airtribune
- name: Install ftp-upload package
run: npm install ftp-upload --save-dev
- name: FTP deployment
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: ${{ secrets.FTP_PORT }}
local-dir: ./dist/
server-dir: /race/