From 019fc57773d5c950b92140b2b9f873b4fedb8025 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Wed, 3 Jul 2024 11:16:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8D=E5=90=8C=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E7=9A=84Actions=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy-test.yml diff --git a/.github/workflows/deploy-test.yml b/.github/workflows/deploy-test.yml new file mode 100644 index 0000000..96372d4 --- /dev/null +++ b/.github/workflows/deploy-test.yml @@ -0,0 +1,28 @@ +name: DeployTest + +on: + push: + branches: + - main + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: npm + - run: npm install + - run: CI=false NODE_ENV=development npm run build + + - uses: easingthemes/ssh-deploy@main + with: + SSH_PRIVATE_KEY: ${{ secrets.KEY }} + REMOTE_HOST: ${{ secrets.HOST }} + ARGS: "-avzr --delete" + SOURCE: dist/ + REMOTE_USER: root + TARGET: /root/ojtest/data/clientnext