Skip to content

Commit

Permalink
fix: main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BQXBQX committed Apr 6, 2024
1 parent c6207fc commit 6051575
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -31,24 +28,22 @@ jobs:

- name: Install rsync
run: sudo apt-get install rsync -y

- name: install pnpm
uses: pnpm/[email protected]
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/[email protected]
with:
with:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: root
Expand Down

0 comments on commit 6051575

Please sign in to comment.