Skip to content

Commit

Permalink
mkdir first
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Apr 10, 2024
1 parent 39319c2 commit bbb0af9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ jobs:
# core.setFailed('/var/www/html/${{ steps.package-version.outputs.current-version}} already exists')

- name: Deploy with rsync
run: rsync -avz ./build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/html/${{ steps.package-version.outputs.current-version}}
run: |
mkdir -p /var/www/html/${{ steps.package-version.outputs.current-version}}
rsync -avz ./build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/html/${{ steps.package-version.outputs.current-version}}
- name: Update symlink
run: ln -sf /var/www/html/${{ steps.package-version.outputs.current-version}} /var/www/html/latest

0 comments on commit bbb0af9

Please sign in to comment.