mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 18:08:15 +03:00
feat: scp -> rsync
This commit is contained in:
@@ -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}}
|
||||
|
||||
@@ -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}}
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user