Skip to content

Commit

Permalink
Update hugo.yml
Browse files Browse the repository at this point in the history
Automatically uncompress the tarball after rsync
  • Loading branch information
lucasvr authored Jul 1, 2024
1 parent c5a586c commit e4fa78d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ jobs:
- name: Display structure of downloaded files
run: ls -R

- name: Sync files to Dreamhost
- name: Sync files and uncompress on Dreamhost
env:
DREAMHOST_USER: ${{ secrets.DREAMHOST_USER }}
DREAMHOST_HOST: ${{ secrets.DREAMHOST_HOST }}
DREAMHOST_PATH: ${{ secrets.DREAMHOST_PATH }}
run: |
rsync -avz --delete public/ $DREAMHOST_USER@$DREAMHOST_HOST:$DREAMHOST_PATH
ssh $DREAMHOST_USER@$DREAMHOST_HOST "tar -xvf $DREAMHOST_PATH/github-pages/artifact.tar -C $DREAMHOST_PATH"

0 comments on commit e4fa78d

Please sign in to comment.