From 6b72ba79c90446d150701ba25773a6771b3bd067 Mon Sep 17 00:00:00 2001 From: "Omar U. Espejel" Date: Thu, 12 Oct 2023 13:51:16 +0700 Subject: [PATCH] :memo: add server to workflow --- .github/workflows/mdbook.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml index eab5b7cb6..3dc3cfb43 100644 --- a/.github/workflows/mdbook.yml +++ b/.github/workflows/mdbook.yml @@ -47,4 +47,6 @@ jobs: - name: Rename book to public_html run: mv book public_html - + - name: scp upload to production site + run: | + sshpass -p ${{ secrets.PROD_PASS }} scp -o 'StrictHostKeyChecking no' -r public_html/ ${{ secrets.PROD_USER }}@${{ secrets.PROD_IP }}:~/ \ No newline at end of file