From 3e58d936adf33fb1a2481de96afe84b72081ea2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=B3=E6=89=93=E7=9E=8C=E7=9D=A1?= Date: Tue, 9 Jul 2024 18:44:33 +0900 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0runner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..889e0ed --- /dev/null +++ b/.gitea/workflows/ build.yml @@ -0,0 +1,25 @@ +name: remote ssh delay command +on: [push] +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + # 使用 node:18 + - name: use Node.js 18 + uses: actions/setup-node@v4 + with: + node-version: 18 + # npm install + - name: npm run build + run: npm install && npm run src:build + - name: scp delay + uses: appleboy/scp-action@master + with: + host: ${{ vars.HOST }} + username: ${{ vars.USERNAME }} + password: ${{ vars.PASSWORD }} + source: "./dist" + target: "/usr/share/nginx/html2" \ No newline at end of file