From 5c52702f3395e8385de2bee9da4ac8beb312a6da Mon Sep 17 00:00:00 2001 From: cheney Date: Thu, 16 Apr 2026 09:07:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-deploy.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/build-deploy.yml diff --git a/.gitea/workflows/build-deploy.yml b/.gitea/workflows/build-deploy.yml new file mode 100644 index 0000000..2e84df7 --- /dev/null +++ b/.gitea/workflows/build-deploy.yml @@ -0,0 +1,37 @@ +name: Build and Deploy + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm install --registry=https://registry.npmmirror.com + + - name: Build project + run: npm run build + + - name: Deploy to server + uses: appleboy/scp-action@v0.1.7 + with: + host: baishe.honor3.com + port: 22 + username: root + password: ${{ secrets.SSH_PWD }} + source: "dist/*" + target: "/app/staticwebs/seckit"