From ffdc1448bf9cb69661ea4eeb57380e2ca2df76f1 Mon Sep 17 00:00:00 2001 From: Timothy Yin Date: Wed, 22 Jan 2025 19:11:57 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=8C=81=E7=BB=AD=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 39 +++++++++++++++++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..bff311c --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,39 @@ +name: 'CD' + +on: + push: + tags: + - v* + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: 🛠 setup pnpm + uses: pnpm/action-setup@v4.0.0 + + - name: ⚙ Install dependencies + run: pnpm i + + - name: 🔨 Genereate project + run: pnpm generate + + - name: 📂 Sync deployment + uses: SamKirkland/FTP-Deploy-Action@4.3.5 + with: + server: ${{ secrets.FTP_SERVER }} + port: ${{ secrets.FTP_PORT }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: dist + server-dir: / + exclude: .gitignore diff --git a/package.json b/package.json index 19fdc3c..e005848 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { - "name": "nuxt-app", + "name": "xsh-assistant", + "version": "0.1.0", "private": true, "type": "module", "scripts": {