Skip to content

Commit

Permalink
Update hugo-build-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorcenski authored Dec 30, 2024
1 parent 465e8f1 commit 4c547a5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/hugo-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ jobs:

- name: Build
run: hugo

- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
name: exoscale
key: ${{ secrets.EXOSCALE_SSH_PRIVATE_KEY }}
known_hosts: "banana"
if_key_exists: replace

- name: Adding Exoscale to Known Hosts
run: |
ssh-keyscan -H ${{ secrets.EXOSCALE_SSH_HOST }} > ~/.ssh/known_hosts
- name: Deploy to exoscale
run: |
rsync -avzr --checksum -e "ssh -i ~/.ssh/exoscale" ./public/ ubuntu@${{ secrets.EXOSCALE_SSH_HOST }}:/www/wtcd/
- uses: azure/login@v1
with:
Expand Down

0 comments on commit 4c547a5

Please sign in to comment.