From 7838651848a1835cb9630a9e3da3259d1cd56c9d Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 6 Jul 2021 10:31:47 +0200 Subject: ci: finally copy the end result into the right place MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .github/workflows/ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ce18c6..6fb2ce0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,4 +68,19 @@ jobs: key: ${{ secrets.KEY }} passphrase: ${{ secrets.PASSPHRASE }} source: "site.tar.gz" - target: "test" + target: "tmp" + + - name: "Update file system" + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + port: ${{ secrets.PORT }} + key: ${{ secrets.KEY }} + passphrase: ${{ secrets.PASSPHRASE }} + script: | + cd tmp + tar xzvf site.tar.gz + rm -rf ${{ secrets.DEST }}/* + cp -r _site/* ${{ secrets.DEST }}/ + rm -r _site -- cgit v1.2.3