Skip to content

Commit

Permalink
use appleboy ssh action
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Nicolle committed Feb 11, 2024
1 parent c1576f6 commit 4bab3f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ jobs:

- name: Deploy
if: ${{ success() }}
run: |
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
port: 22
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
if [[ "${{ env.DEPLOY_ASSETS }}" == 'true' ]]; then
echo "Deploying JS assets"
ssh $SSH_TARGET "rm -rf $ASSETS && mkdir -p $ASSETS"
Expand Down

0 comments on commit 4bab3f3

Please sign in to comment.