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": {