chore: 细节调整。
Some checks failed
🚀 Build and deploy by ftp / 🎉 Deploy (push) Failing after 1s

This commit is contained in:
2023-07-09 05:33:17 +00:00
parent fede1341b0
commit e263be3fe9
5 changed files with 7 additions and 65 deletions

View File

@@ -0,0 +1,31 @@
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.comactions/checkout@v3
- uses: https://github.comactions/setup-node@v3
with:
node-version: 16
- run: npm i --location=global pnpm@7
- run: pnpm i
- run: pnpm build
- run: npm run export
- name: 📂 Sync files
uses: https://github.comSamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}