-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
devil
committed
Aug 2, 2024
1 parent
46a78e1
commit d5d4c78
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,18 +33,18 @@ jobs: | |
ls | ||
- name: 推送到备份服务器 | ||
uses: SamKirkland/[email protected] | ||
uses: cross-the-world/ssh-scp-ssh-pipelines@latest | ||
env: | ||
LASTSSH: "Doing something after copying" | ||
with: | ||
local-dir: ./ | ||
server: ${{ secrets.SERVER_SERVER }} | ||
username: ${{ secrets.SERVER_USERNAME }} | ||
password: ${{ secrets.SERVER_PASSWORD }} | ||
remote-dir: /opt/app/zip/ | ||
exclude: | | ||
.git | ||
node_modules | ||
.gitignore | ||
.env | ||
host: ${{ secrets.SERVER_HOST }} | ||
user: ${{ secrets.SERVER_USER}} | ||
pass: ${{ secrets.SERVER_PASSWORD }} | ||
scp: | | ||
./code.zip => /path/on/server/code.zip | ||
last_ssh: | | ||
echo $LASTSSH | ||
# 执行其他命令,例如解压 ZIP 文件和重启服务 | ||
- name: 打印作业状态 🍏 | ||
run: echo "🍏 This job's status is ${{ job.status }}." |