Skip to content

Commit

Permalink
ci: try appleboy/scp-action@v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Dec 10, 2023
1 parent 9dc9ba6 commit 3eb8b5a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:
- name: Execute unit tests
run: pnpm run test

- name: Pre compilation
run: pnpm run build

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -74,15 +71,17 @@ jobs:
needs: test
if: github.ref == 'refs/heads/master'
steps:
- name: Compilation
run: pnpm run build
- name: Copy file via ssh key
uses: easingthemes/ssh-deploy@main
uses: appleboy/scp-action@v0.1.4
with:
REMOTE_HOST: ${{ secrets.HOST }}
REMOTE_USER: ${{ secrets.USERNAME }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "build/"
TARGET: /var/www/leetcode-trip
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSH_KEY }}
source: 'build'
target: '/var/www/leetcode-trip'
- uses: actions/checkout@v4
- name: Algoria DocSearch Crawler
uses: darrenjennings/algolia-docsearch-action@master
Expand Down

0 comments on commit 3eb8b5a

Please sign in to comment.