Skip to content

Commit

Permalink
CI: Sync built preview site to pelicanthemes.com
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Jul 23, 2023
1 parent 2c54ecc commit fa82822
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build-preview-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ jobs:
- name: Generate output
run: python build-theme-previews.py

# Rsync to server hosting pelicanthemes.com
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: unnecessary
- name: Adding known hosts
run: ssh-keyscan -p 22 -H pelicanthemes.com >> ~/.ssh/known_hosts
- name: Deploy with rsync
run: rsync -avz ./_output/ [email protected]:~/roles/caddy/sites/pelicanthemes.com/

# Deploy to Github Pages
- name: Setup Pages
uses: actions/configure-pages@v2
Expand All @@ -62,4 +73,4 @@ jobs:
path: '_output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v1

0 comments on commit fa82822

Please sign in to comment.