Skip to content

Updated frontend.yml #5

Updated frontend.yml

Updated frontend.yml #5

Workflow file for this run

name: Privateer Webserver Frontend CI/CD
on:
push:
branches: [ "wasm" ]
paths:
- webserver/**
pull_request:
branches: [ "wasm" ]
paths:
- webserver/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build frontend
uses: actions/setup-node@v3
with:
node-version: 20.x
- run: |
export NODE_OPTIONS=--max-old-space-size=8192
cd webserver
npm ci
npm run build
cp ../.htaccess dist
mv dist public_html
cd ..
- name: Push to server!
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.ftp_server_ip}}
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
protocol: ${{ secrets.ftp_protocol}}
port: ${{ secrets.ftp_port }}
local-dir: webserver/public_html/
server-dir: ${{ secrets.ftp_server_dir }}/
dry-run: true