-
Notifications
You must be signed in to change notification settings - Fork 3
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
xiajieqiong
committed
Sep 18, 2023
1 parent
fc2e4f1
commit a4d7fa8
Showing
3 changed files
with
9 additions
and
2 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 |
---|---|---|
|
@@ -57,7 +57,7 @@ jobs: | |
uses: AEnterprise/[email protected] # 使用别人包装好的步骤镜像 | ||
env: | ||
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} # 引用配置,SSH私钥 | ||
ARGS: -avz --delete --exclude='*.pyc' # rsync参数,排除.pyc文件 | ||
ARGS: -avz # rsync参数,排除.pyc文件 | ||
SERVER_PORT: ${{ secrets.SSH_PORT }} # SSH端口 | ||
FOLDER: ./dist # 要推送的文件夹,路径相对于代码仓库的根目录 | ||
SERVER_IP: ${{ secrets.SSH_HOST }} # 引用配置,服务器的host名(IP或者域名domain.com) | ||
|
@@ -73,4 +73,4 @@ jobs: | |
key: ${{ secrets.DEPLOY_KEY }} | ||
# 重启的脚本,根据自身情况做相应改动,一般要做的是migrate数据库以及重启服务器 | ||
script: | | ||
nginx -s reload | ||
nginx -s reload |
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
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