diff --git a/.github/workflows/Deploy US.yml b/.github/workflows/Deploy.yml similarity index 58% rename from .github/workflows/Deploy US.yml rename to .github/workflows/Deploy.yml index 9c00526e..eec9b0a3 100644 --- a/.github/workflows/Deploy US.yml +++ b/.github/workflows/Deploy.yml @@ -1,10 +1,12 @@ -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 push: branches: [ master ] + jobs: - gh-win-us-all-deploy: + gh-win-us-deploy: name: 🎉 Deploy InfoSys to US runs-on: ubuntu-latest steps: @@ -20,7 +22,7 @@ jobs: port: ${{ secrets.US_FTP_PORT }} local-dir: ./ server-dir: /information-system/ - dry-run: true + # dry-run: true exclude: | **/.git* **/.git*/** @@ -43,7 +45,40 @@ jobs: port: ${{ secrets.US_FTP_PORT }} local-dir: ./ server-dir: /origin-ct.mycht.cn/ - dry-run: true + # 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*/**