Skip to content

Commit

Permalink
ci: 需要先运行 tailscale up --ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Sep 10, 2024
1 parent d389398 commit 1a7e44f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,10 @@ jobs:
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci

# https://github.com/tailscale/tailscale/issues/5226
- name: Copy file to server
run: |
tailscale up --ssh
rsync -vzr --delete . github@${{ secrets.SSH_HOST }}:/home/github/smart-home-web
tailscale ssh github@${{ secrets.SSH_HOST }} ${{ secrets.DEPLOY_SCRIPT }}
Expand All @@ -242,6 +244,7 @@ jobs:

- name: Copy file to server
run: |
tailscale up --ssh
rsync -vzr --delete . github@${{ secrets.SSH_HOST }}:/home/github/smart-home-web
tailscale ssh github@${{ secrets.SSH_HOST }} ${{ secrets.DEPLOY_SCRIPT }}
Expand Down

0 comments on commit 1a7e44f

Please sign in to comment.