File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy DEV to host
2+
3+ on :
4+ push :
5+ branches :
6+ - dev
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v2
15+
16+ - name : Set up Node.js
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : ' >=18'
20+
21+ - name : Install dependencies
22+ run : yarn
23+
24+ - name : Build project
25+ run : yarn build-only
26+
27+ - name : FTP Deploy
28+ uses : pressidium/lftp-mirror-action@v1
29+ with :
30+ host : ${{ secrets.FTP_SERVER }}
31+ user : ${{ secrets.FTP_USERNAME }}
32+ pass : ${{ secrets.FTP_PASSWORD }}
33+ localDir : ./dist/
34+ remoteDir : ${{ secrets.FTP_DEMO_DEV_PATH }}
Original file line number Diff line number Diff line change 1+ name : Deploy PROD to host
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v2
15+
16+ - name : Set up Node.js
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : ' >=18'
20+
21+ - name : Install dependencies
22+ run : yarn
23+
24+ - name : Build project
25+ run : yarn build-only
26+
27+ - name : FTP Deploy
28+ uses : pressidium/lftp-mirror-action@v1
29+ with :
30+ host : ${{ secrets.FTP_SERVER }}
31+ user : ${{ secrets.FTP_USERNAME }}
32+ pass : ${{ secrets.FTP_PASSWORD }}
33+ localDir : ./dist/
34+ remoteDir : ${{ secrets.FTP_DEMO_PROD_PATH }}
Original file line number Diff line number Diff line change 22 "name" : " @jsonms/demo" ,
33 "private" : true ,
44 "type" : " module" ,
5- "version" : " 0.1.4 " ,
5+ "version" : " 0.1.5 " ,
66 "scripts" : {
77 "dev" : " vite" ,
88 "build" : " run-p type-check \" build-only {@}\" --" ,
You can’t perform that action at this time.
0 commit comments