Skip to content

Commit

Permalink
Update ftp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dudushy committed Mar 17, 2024
1 parent f48a56a commit 06cc283
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ftp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: ♻️ Update server (public_html)
on:
push:
branches:
- gh-pages
workflow_dispatch:
- main

jobs:
web-deploy:
Expand All @@ -13,8 +12,12 @@ jobs:
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
with:
ref: gh-pages

- 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]
Expand All @@ -23,5 +26,5 @@ jobs:
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
local-dir: ./
local-dir: ./docs
server-dir: public_html/

0 comments on commit 06cc283

Please sign in to comment.