Skip to content

Commit

Permalink
Deploy to paveloom.dev via Rsync.
Browse files Browse the repository at this point in the history
  • Loading branch information
paveloom committed Feb 24, 2024
1 parent 4986c6c commit 5b83e0b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/Build & Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ jobs:
https://paveloom.dev \
https://github.com/paveloom/paveloom.github.io"
- name: Deploy
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: public/
server-dir: paveloom.dev/public_html/
run: |
mkdir ~/.ssh && chmod 700 ~/.ssh
ssh-keyscan ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
echo "${{ secrets.SSH_KEY }}" | SSH_PASS="${{ secrets.SSH_KEY_PASS }}" agent-add
rsync -avzh --delete-after public/ \
"${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}:${{ secrets.SSH_REMOTE_DIR }}"

0 comments on commit 5b83e0b

Please sign in to comment.