Skip to content

Merge pull request #102 from swissbuechi/angular-19 #26

Merge pull request #102 from swissbuechi/angular-19

Merge pull request #102 from swissbuechi/angular-19 #26

Workflow file for this run

# Build and Deploy to FTP
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Build Project
run: |
npm install
npm run build --if-present
- name: List output files
run: ls
- name: Deploy to FTP
uses: SamKirkland/FTP-Deploy-Action@3.1.2
with:
ftp-server: ${{ secrets.FTP_SERVER }}
ftp-username: ${{ secrets.FTP_USERNAME }}
ftp-password: ${{ secrets.FTP_PASSWORD }}
git-ftp-args: --insecure
local-dir: dist/browser