-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (37 loc) · 1.03 KB
/
frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 webserver/dist
mv webserver/dist webserver/public_html
- name: Push to server!
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.ftp_username}}
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
protocol: ${{ secrets.ftp_protocol}}
port: ${{ secrets.ftp_port }}
local_dir: webserver/public_html
server_dir: ${{ secrets.server_dir }}
dry-run: true