From 855ce28218c928d368b944be7ffc84d653089135 Mon Sep 17 00:00:00 2001 From: p79813206 Date: Fri, 2 Aug 2024 09:29:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.gitea/workflows/build.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..4611be6 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,26 @@ +name: PHengLEI docs build +run-name: PHengLEI docs build +on: [push] + +jobs: + PHengLEI-docs-build: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: https://osredm.com/actions/checkout@v4 + - name: setup node + uses: https://osredm.com/actions/setup-node@main + with: + node-version: 'v16.14.2' + - run: npm install + - run: npm run build -- --locale zh-CN + - name: scp files to server + uses: appleboy/scp-action@v0.1.7 + with: + host: 123.60.208.28 + username: root + password: ${{ secrets.PASSWORD }} + port: 22 + source: "build" + target: /root/ +