This commit is contained in:
parent
2cd4bb70f5
commit
6d8c9fa80a
1 changed files with 12 additions and 1 deletions
|
@ -24,9 +24,20 @@ jobs:
|
||||||
- name: Build Hugo Site
|
- name: Build Hugo Site
|
||||||
run: hugo
|
run: hugo
|
||||||
|
|
||||||
|
- name: Set up SSH Key
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "${{ secrets.SSH_PRIV_KEY }}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
|
||||||
- name: Deploy to SSH Host
|
- name: Deploy to SSH Host
|
||||||
run: |
|
run: |
|
||||||
rsync -avz --delete -e "ssh -i ${{ secrets.SSH_PRIV_KEY }} -o StrictHostKeyChecking=no" ./public/ wiki-deploy@${{ secrets.SSH_HOST }}:/var/www/wiki.lunivity.com/
|
rsync -avz --delete -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no" ./public/ wiki-deploy@${{ secrets.SSH_HOST }}:/var/www/wiki.lunivity.com/
|
||||||
|
|
||||||
|
- name: Remove SSH Key
|
||||||
|
run: |
|
||||||
|
rm -rf ~/.ssh
|
||||||
|
echo "SSH Key removed."
|
||||||
|
|
||||||
# - name: Deploy to SSH Host
|
# - name: Deploy to SSH Host
|
||||||
# uses: https://github.com/Creepios/sftp-action@v1.0.5
|
# uses: https://github.com/Creepios/sftp-action@v1.0.5
|
||||||
|
|
Loading…
Reference in a new issue