Skip to content

Update ftp.yml

Update ftp.yml #2

Workflow file for this run

name: ♻️ Update server (public_html)
on:
push:
branches:
- main
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: 🛠️ Build Angular project
run: |
npm install -g @angular/cli
npm ci
ng build --prod --output-path docs --base-href "https://dudushy.net/"
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.SERVER }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
local-dir: ./docs
server-dir: public_html/