Skip to content

Commit

Permalink
Merge pull request #111 from xixiIBN5100/dev
Browse files Browse the repository at this point in the history
fix: 修复dev分支的CD功能
  • Loading branch information
xixiIBN5100 authored Oct 17, 2024
2 parents 7311cd2 + 2354f5b commit ed73b4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:

# - name: Check if forked
# if: github.event.repository.fork == true
# run: echo "This action is running on a forked repository and will not deploy." && exit 0
- name: Check if forked
if: github.event.repository.fork == true
run: echo "This action is running on a forked repository and will not deploy." && exit 0

- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_TOKEN_DEV }}
SOURCE: "dist/"
TARGET: "/var/www/dist"
TARGET: "/var/www/qa"
ARGS: "-avzr --delete"
REMOTE_HOST: ${{ secrets.REMOTE_HOST_DEV }}
REMOTE_USER: ${{ secrets.REMOTE_USER_DEV }}

0 comments on commit ed73b4c

Please sign in to comment.