Skip to content

Commit

Permalink
feat: scp -> rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
zkrising committed Sep 19, 2024
1 parent 60d8557 commit 4658937
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand All @@ -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}}
5 changes: 4 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
2 changes: 1 addition & 1 deletion .github/workflows/homepage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit 4658937

Please sign in to comment.