diff --git a/.github/workflows/Deploy CN.yml b/.github/workflows/Deploy CN.yml new file mode 100644 index 00000000..5fd67cfb --- /dev/null +++ b/.github/workflows/Deploy CN.yml @@ -0,0 +1,37 @@ +# . +name: 🚀 Deploy INFO-SYS +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] +jobs: + gh-win-cn-all-deploy: + name: 🎉 Deploy InfoSys to CN + runs-on: ubuntu-latest + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v3 + + - name: 📂 Sync files + 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 diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml new file mode 100644 index 00000000..eec9b0a3 --- /dev/null +++ b/.github/workflows/Deploy.yml @@ -0,0 +1,94 @@ +name: 🚀 Deploy INFO-SYS + +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 + 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 }} + username: ${{ secrets.US_FTP_USER }} + password: ${{ secrets.US_FTP_PASSWORD }} + port: ${{ secrets.US_FTP_PORT }} + local-dir: ./ + server-dir: /information-system/ + # dry-run: true + exclude: | + **/.git* + **/.git*/** + **/node_modules/** + document/** + download_statement/** + sample/** + **/logs/** + **/web.config + **/author/document/** + *.exe + *.docx + .ftp-deploy-sync-state.json + - name: 📂 Sync files to CT + 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 }} + local-dir: ./ + server-dir: /origin-ct.mycht.cn/ + # dry-run: true + exclude: | + **/.git* + **/.git*/** + **/node_modules/** + document/** + download_statement/** + sample/** + **/logs/** + **/web.config + **/author/document/** + *.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 + 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 diff --git a/.gitignore b/.gitignore index 87794a8c..a286a2b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ .idea -.phpintel +.phpintel +.*.json.bak +.ftp-deploy-sync-state.json .svn/* */logs/log* /web.config @@ -14,3 +16,4 @@ /application/config/database.php + diff --git a/application/cache/.htaccess b/application/cache/.htaccess deleted file mode 100644 index 3418e55a..00000000 --- a/application/cache/.htaccess +++ /dev/null @@ -1 +0,0 @@ -deny from all \ No newline at end of file diff --git a/application/cache/index.html b/application/cache/index.html deleted file mode 100644 index c942a79c..00000000 --- a/application/cache/index.html +++ /dev/null @@ -1,10 +0,0 @@ - -
-Directory access is forbidden.
- - - \ No newline at end of file diff --git a/application/views/mobile_first/ah-lantern-festival-gp-form.php b/application/views/mobile_first/ah-lantern-festival-gp-form.php index 219eece3..e45000b9 100644 --- a/application/views/mobile_first/ah-lantern-festival-gp-form.php +++ b/application/views/mobile_first/ah-lantern-festival-gp-form.php @@ -3,7 +3,7 @@