From 096b31d7fdc1d7d9e944dbd80dee6f2d0483fdd3 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 15 Aug 2023 11:47:53 +0800 Subject: [PATCH 1/4] =?UTF-8?q?conf:=20=E9=83=A8=E7=BD=B2=20[test]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Deploy US.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Deploy US.yml b/.github/workflows/Deploy US.yml index 9c00526e..6170fffd 100644 --- a/.github/workflows/Deploy US.yml +++ b/.github/workflows/Deploy US.yml @@ -4,7 +4,7 @@ on: push: branches: [ master ] jobs: - gh-win-us-all-deploy: + gh-win-us-deploy: name: 🎉 Deploy InfoSys to US runs-on: ubuntu-latest steps: @@ -57,3 +57,34 @@ jobs: *.exe *.docx .ftp-deploy-sync-state.json + gh-win-cn-deploy: + name: 🎉 Deploy InfoSys to CN + runs-on: ubuntu-latest + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v3 + + - name: 📂 Sync files to CHT + uses: SamKirkland/FTP-Deploy-Action@v4.3.4 + with: + server: ${{ secrets.CN_FTP_SERVER }} + username: ${{ secrets.CN_FTP_USER }} + password: ${{ secrets.CN_FTP_PASSWORD }} + port: ${{ secrets.CN_FTP_PORT }} + local-dir: ./ + server-dir: /wwwroot/origin-cht.mycht.cn/ + dry-run: true + # log-level: verbose + exclude: | + **/.git* + **/.git*/** + **/node_modules/** + document/** + download_statement/** + sample/** + **/logs/** + **/web.config + **/author/document/** + *.exe + *.docx + .ftp-deploy-sync-state.json From 6cc6cb15c9c39eaaf85f0fef600be7df21174f82 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 15 Aug 2023 11:53:41 +0800 Subject: [PATCH 2/4] =?UTF-8?q?conf:=20=E9=83=A8=E7=BD=B2=20[test]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Deploy US.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/Deploy US.yml b/.github/workflows/Deploy US.yml index 6170fffd..85cd88aa 100644 --- a/.github/workflows/Deploy US.yml +++ b/.github/workflows/Deploy US.yml @@ -1,8 +1,10 @@ name: 🚀 Deploy INFO-SYS US + on: # Triggers the workflow on push or pull request events but only for the master branch push: branches: [ master ] + jobs: gh-win-us-deploy: name: 🎉 Deploy InfoSys to US @@ -57,7 +59,9 @@ jobs: *.exe *.docx .ftp-deploy-sync-state.json + gh-win-cn-deploy: + needs: gh-win-us-deploy name: 🎉 Deploy InfoSys to CN runs-on: ubuntu-latest steps: From 902ad5c82a08ca144a86427dc7677b8e6fa7264d Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 15 Aug 2023 11:57:20 +0800 Subject: [PATCH 3/4] =?UTF-8?q?conf:=20=E9=83=A8=E7=BD=B2=20[test]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{Deploy US.yml => Deploy.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{Deploy US.yml => Deploy.yml} (95%) diff --git a/.github/workflows/Deploy US.yml b/.github/workflows/Deploy.yml similarity index 95% rename from .github/workflows/Deploy US.yml rename to .github/workflows/Deploy.yml index 85cd88aa..9d2046f4 100644 --- a/.github/workflows/Deploy US.yml +++ b/.github/workflows/Deploy.yml @@ -1,4 +1,4 @@ -name: 🚀 Deploy INFO-SYS US +name: 🚀 Deploy INFO-SYS on: # Triggers the workflow on push or pull request events but only for the master branch From fd0a5336cbe6544f513572e6c91f728ebe84a51e Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 15 Aug 2023 11:59:56 +0800 Subject: [PATCH 4/4] =?UTF-8?q?conf:=20=E9=83=A8=E7=BD=B2=20[ready]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 9d2046f4..eec9b0a3 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -22,7 +22,7 @@ jobs: port: ${{ secrets.US_FTP_PORT }} local-dir: ./ server-dir: /information-system/ - dry-run: true + # dry-run: true exclude: | **/.git* **/.git*/** @@ -45,7 +45,7 @@ jobs: port: ${{ secrets.US_FTP_PORT }} local-dir: ./ server-dir: /origin-ct.mycht.cn/ - dry-run: true + # dry-run: true exclude: | **/.git* **/.git*/** @@ -77,7 +77,7 @@ jobs: port: ${{ secrets.CN_FTP_PORT }} local-dir: ./ server-dir: /wwwroot/origin-cht.mycht.cn/ - dry-run: true + # dry-run: true # log-level: verbose exclude: | **/.git*