29 lines
810 B
YAML
29 lines
810 B
YAML
name: Build & Deploy
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
types: [opened, synchronize, reopened]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-copy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build
|
|
run: |
|
|
echo "replace with your actual build command"
|
|
# e.g. npm ci && npm run build / make all
|
|
|
|
- name: Copy build output to FTP server
|
|
uses: SamKirkland/FTP-Deploy-Action@4.2.0
|
|
with:
|
|
server: 82.165.141.176 # LAN IP of the box running your FTP server
|
|
username: ${{ secrets.FTP_USER }}
|
|
password: ${{ secrets.FTP_PASS }}
|
|
local-dir: dist/ # where your build output lands
|
|
remote-dir: /dev.karlderheinz.tv/ # target dir on the FTP server
|