From 605157576d97e00238b84747ac8cf47ac5911912 Mon Sep 17 00:00:00 2001 From: BQX Date: Sat, 6 Apr 2024 13:26:42 +0800 Subject: [PATCH] fix: main.yml --- .github/workflows/main.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2056e24..008980c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,15 +6,12 @@ name: CICD on: # Triggers the workflow on push or pull request events but only for the "master" branch push: - branches: - - release + branches: + - release merge_group: - branches: + branches: - release - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" @@ -31,24 +28,22 @@ jobs: - name: Install rsync run: sudo apt-get install rsync -y - + - name: install pnpm uses: pnpm/action-setup@v2.4.0 with: version: 8 - run_install: true + run_install: true - name: pnpm i - run: | - pnpm i + run: pnpm i - name: build - run: | - pnpm build - + run: pnpm build + - name: Deploy to Server uses: easingthemes/ssh-deploy@v5.0.0 - with: + with: SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }} REMOTE_HOST: ${{ secrets.REMOTE_HOST }} REMOTE_USER: root