Skip to content

Commit

Permalink
fix indentation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hepplerj authored Nov 21, 2024
1 parent 6134b5f commit c9dd4af
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,24 @@ jobs:
asset_content_type: application/gzip

- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
echo "Host ${{ secrets.SERVER_HOST }}
HostName ${{ secrets.SERVER_HOST }}
User ${{ secrets.SERVER_USER }}
IdentityFile ~/.ssh/deploy_key
IdentitiesOnly yes
StrictHostKeyChecking no" > ~/.ssh/config
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
echo "Host ${{ secrets.SERVER_HOST }}
HostName ${{ secrets.SERVER_HOST }}
User ${{ secrets.SERVER_USER }}
IdentityFile ~/.ssh/deploy_key
IdentitiesOnly yes
StrictHostKeyChecking no" > ~/.ssh/config
- name: Deploy with rsync
run: |
rsync --omit-dir-times --checksum -avz --itemize-changes \
public/ ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:~/public_html/ | egrep -v '^\.'
- name: Deploy with rsync
run: |
rsync -avz --omit-dir-times --checksum --itemize-changes --delete \
public/ ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:~/public_html/ | egrep -v '^\.'
- name: Show changed files
run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} \
"find ~/public_html -type f -mtime -1 -ls | egrep -v '^\\.'"
- name: Show changed files
run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} \
"find ~/public_html -type f -mtime -1 -ls | egrep -v '^\\.'"

0 comments on commit c9dd4af

Please sign in to comment.