Skip to content

Commit

Permalink
Update hugo.yml
Browse files Browse the repository at this point in the history
Push artiifacts to Dreamhost.
  • Loading branch information
lucasvr authored Jul 1, 2024
1 parent 5949404 commit 7e7be09
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,21 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Install SSH Client
run: sudo apt-get install -y openssh-client

- name: Add SSH Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DREAMHOST_DEPLOY_KEY }}

- name: Sync files to 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

0 comments on commit 7e7be09

Please sign in to comment.