tailwind-nextjs-blog/.github/workflows/build-and-deploy-by-ftp.yaml
Ivan Li f3a25f7a46
All checks were successful
🚀 Build and deploy by ftp / 🎉 Deploy (push) Successful in 5m45s
build(ci): 更换 FTP action.
2023-09-10 13:45:05 +00:00

34 lines
729 B
YAML

name: 🚀 Build and deploy by ftp
on:
push:
branches:
- master
- main
jobs:
ftp-build-and-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: https://github.com/actions/checkout@v3
- uses: https://github.com/actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn install
- run: yarn build
- name: 📂 Sync files
uses: https://github.com/airvzxf/ftp-deployment-action@latest
with:
server: ${{ secrets.ftp_server }}
user: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
remote_dir: ./WEB/
local_dir: ./out/