-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 875 Bytes
/
ftp.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
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 --output-path docs --base-href ${{ secrets.BASE_HREF }}
- name: 📝 Create .htaccess
run: |
echo "ErrorDocument 404 /index.html" > docs/browser/.htaccess
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.SERVER }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
local-dir: docs/browser/
server-dir: public_html/