fix deploy action #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to FTP | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.9.0 | |
- name: Install dependencies and build Next.js app | |
run: | | |
cd client | |
npm install | |
npm run build | |
- name: Deploy via FTPS | |
uses: SamKirkland/FTP-Deploy-Action@4.3.3 | |
with: | |
server: ${{ secrets.FTP_HOST }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: client/_next/ | |
server-dir: / | |
protocol: ftps | |
timeout: 300000 |