diff options
author | Justin Mayer <entroP@gmail.com> | 2023-07-23 08:40:50 +0200 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2023-07-23 08:40:50 +0200 |
commit | fa828224dda9b87282459e26873057a01385b19d (patch) | |
tree | 22311180b92ceae8a8908684ca958bb7e073f649 | |
parent | 2c54ecc738ad13f804add85a5dbd43b2a0c36501 (diff) | |
download | pelican-themes-fa828224dda9b87282459e26873057a01385b19d.tar.gz |
CI: Sync built preview site to pelicanthemes.com
-rw-r--r-- | .github/workflows/build-preview-site.yml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/build-preview-site.yml b/.github/workflows/build-preview-site.yml index 6dd2cc9..2639c05 100644 --- a/.github/workflows/build-preview-site.yml +++ b/.github/workflows/build-preview-site.yml @@ -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/ deploy@pelicanthemes.com:~/roles/caddy/sites/pelicanthemes.com/ + # Deploy to Github Pages - name: Setup Pages uses: actions/configure-pages@v2 @@ -62,4 +73,4 @@ jobs: path: '_output' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1
\ No newline at end of file + uses: actions/deploy-pages@v1 |