Skip to content

Commit

Permalink
Create deploy_main_to_ftp.yml (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
SedlarDavid authored Jul 16, 2024
1 parent 671dc92 commit 2586d09
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy_main_to_ftp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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: yarn install && yarn 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'

0 comments on commit 2586d09

Please sign in to comment.