aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2021-07-06 10:31:47 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2021-07-06 10:31:47 +0200
commit7838651848a1835cb9630a9e3da3259d1cd56c9d (patch)
tree520edeb9412e062db3bfc361a1fad0c792753458
parenta1beec49bb53db143787cb1e5c32f9c319e1b951 (diff)
downloadjo.mssola.com-7838651848a1835cb9630a9e3da3259d1cd56c9d.tar.gz
jo.mssola.com-7838651848a1835cb9630a9e3da3259d1cd56c9d.zip
ci: finally copy the end result into the right place
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--.github/workflows/ci.yml17
1 files changed, 16 insertions, 1 deletions
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