feat: scp -> rsync

This commit is contained in:
zkldi
2024-09-19 21:10:44 +01:00
parent 60d8557572
commit 46589371fc
3 changed files with 8 additions and 5 deletions
+3 -3
View File
@@ -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}}
+4 -1
View File
@@ -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}}
+1 -1
View File
@@ -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}}