Skip to content

Update deploy_main_to_ftp.yml (#46) #2

Update deploy_main_to_ftp.yml (#46)

Update deploy_main_to_ftp.yml (#46) #2

on:
push:
branches:
- main
workflow_dispatch:
name: Deploy website on main push
jobs:
web-deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v3
- run: npm install && npm build
- name: Sync files
uses: wangyucode/[email protected]
with:
host: ${{ secrets.FTP }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: './dist/'
remoteDir: './www/'
exclude: '.git*,**/.git*,**/.git*/**,**/.idea*,**/.idea*/**.DS_Store'