From 8a8e065bdec5731b504001199e8323ec331f4e7e Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Fri, 9 Aug 2024 17:04:38 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E9=80=89=E6=8B=A9S+V=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Deploy.yml | 52 ++++++++++--------- .../views/mobile_first/ah-lantern-form.php | 14 +++-- 2 files changed, 37 insertions(+), 29 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 164c5b6d..9b24b01e 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -6,8 +6,8 @@ on: branches: [ master ] jobs: - gh-win-us-deploy: - name: 🎉 Deploy InfoSys to US + gh-win-cn-deploy: + name: 🎉 Deploy InfoSys to CN runs-on: ubuntu-latest steps: - name: 🚚 Get latest code @@ -16,13 +16,14 @@ jobs: - name: 📂 Sync files to CHT uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: - server: ${{ secrets.US_FTP_SERVER }} - username: ${{ secrets.US_FTP_USER }} - password: ${{ secrets.US_FTP_PASSWORD }} - port: ${{ secrets.US_FTP_PORT }} + server: ${{ secrets.CN_FTP_SERVER }} + username: ${{ secrets.CN_FTP_USER }} + password: ${{ secrets.CN_FTP_PASSWORD }} + port: ${{ secrets.CN_FTP_PORT }} local-dir: ./ - server-dir: /information-system/ + server-dir: /wwwroot/origin-cht.mycht.cn/ # dry-run: true + # log-level: verbose exclude: | **/.git* **/.git*/** @@ -36,7 +37,16 @@ jobs: *.exe *.docx .ftp-deploy-sync-state.json - - name: 📂 Sync files to CT + + gh-win-us-deploy: + needs: gh-win-cn-deploy + name: 🎉 Deploy InfoSys to US + 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.US_FTP_SERVER }} @@ -44,7 +54,7 @@ jobs: password: ${{ secrets.US_FTP_PASSWORD }} port: ${{ secrets.US_FTP_PORT }} local-dir: ./ - server-dir: /origin-ct.mycht.cn/ + server-dir: /information-system/ # dry-run: true exclude: | **/.git* @@ -59,26 +69,16 @@ 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: - - name: 🚚 Get latest code - uses: actions/checkout@v3 - - - name: 📂 Sync files to CHT + - name: 📂 Sync files to CT 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 }} + server: ${{ secrets.US_FTP_SERVER }} + username: ${{ secrets.US_FTP_USER }} + password: ${{ secrets.US_FTP_PASSWORD }} + port: ${{ secrets.US_FTP_PORT }} local-dir: ./ - server-dir: /wwwroot/origin-cht.mycht.cn/ + server-dir: /origin-ct.mycht.cn/ # dry-run: true - # log-level: verbose exclude: | **/.git* **/.git*/** @@ -93,6 +93,8 @@ jobs: *.docx .ftp-deploy-sync-state.json + + hn-notification: needs: gh-win-cn-deploy name: 🔔 Send notificaiton diff --git a/application/views/mobile_first/ah-lantern-form.php b/application/views/mobile_first/ah-lantern-form.php index da1ce476..82532054 100644 --- a/application/views/mobile_first/ah-lantern-form.php +++ b/application/views/mobile_first/ah-lantern-form.php @@ -32,7 +32,7 @@
- +