Ivan Li
423f908b83
Some checks failed
🚀 Build and deploy by ftp / 🎉 Deploy (push) Failing after 3m48s
35 lines
760 B
YAML
35 lines
760 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
|
|
- run: yarn run export
|
|
|
|
- name: 📂 Sync files
|
|
uses: https://github.com/SamKirkland/FTP-Deploy-Action@v4.3.4
|
|
with:
|
|
server: ${{ secrets.ftp_server }}
|
|
username: ${{ secrets.ftp_username }}
|
|
password: ${{ secrets.ftp_password }}
|
|
server-dir: ./WEB/
|
|
local-dir: ./out/
|