diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 17 |
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 |
