diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 684106d2b..25bf0e81c 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -105,13 +105,13 @@ jobs: - name: Deploy Kamaitachi if: github.ref == 'refs/heads/main' - run: ssh ci@"$TACHI_HOST" 'rm -rf ~/tachi-client/kamai' && scp -r ~/kamai ci@"$TACHI_HOST":tachi-client + run: rsync --recursive --compress --delete --progress ~/kamai ci@"$TACHI_HOST":tachi-client/kamai env: TACHI_HOST: ${{secrets.TACHI_HOST}} - name: Deploy Bokutachi if: github.ref == 'refs/heads/main' - run: ssh ci@"$TACHI_HOST" 'rm -rf ~/tachi-client/boku' && scp -r ~/boku ci@"$TACHI_HOST":tachi-client + run: rsync --recursive --compress --delete --progress ~/boku ci@"$TACHI_HOST":tachi-client/boku env: TACHI_HOST: ${{secrets.TACHI_HOST}} @@ -129,6 +129,6 @@ jobs: BUILD_OUT_DIR: /home/runner/staging - name: Deploy Staging - run: ssh ci@"$TACHI_HOST" 'rm -rf ~/tachi-client/staging' && scp -r ~/staging ci@"$TACHI_HOST":tachi-client + run: rsync --recursive --compress --delete --progress ~/staging ci@"$TACHI_HOST":tachi-client/staging env: TACHI_HOST: ${{secrets.TACHI_HOST}} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b44f08369..0880f360f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -32,7 +32,10 @@ jobs: - name: Build Docs run: docker run -v ./site:/site --entrypoint="mkdocs" docs build + - name: Install rsync + run: apt install -y rsync + - name: Deploy docs - run: scp -r ./site ci@"$TACHI_HOST":tachi-docs + run: rsync --recursive --compress --delete --progress ./site/. ci@"$TACHI_HOST":tachi-docs env: TACHI_HOST: ${{secrets.TACHI_HOST}} diff --git a/.github/workflows/homepage.yml b/.github/workflows/homepage.yml index 3e924c767..b26723f5d 100644 --- a/.github/workflows/homepage.yml +++ b/.github/workflows/homepage.yml @@ -41,6 +41,6 @@ jobs: run: pnpm --filter tachi-homepage build - name: Deploy - run: scp -r homepage/dist/* ci@"$TACHI_HOST":tachi + run: rsync --recursive --compress --delete --progress ./homepage/dist/. ci@"$TACHI_HOST":tachi env: TACHI_HOST: ${{secrets.TACHI_HOST}}