feat: add dedicated jamaah dashboard view with personalized widgets a… #31
This file contains hidden or 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
| name: Auto Deploy to SiteGround via SSH (Rsync) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| name: Deploy to Production | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| # 1. DEPLOY APP-CORE | |
| # Akan dikirim ke: {TARGET_PATH}/app-core/ | |
| - name: Deploy Core Files (app-core) | |
| uses: easingthemes/ssh-deploy@main | |
| env: | |
| SSH_PRIVATE_KEY: ${{ secrets.SITEGROUND_SSH_PRIVATE_KEY }} | |
| ARGS: "-rlgoDzvc -i --delete" | |
| SOURCE: "app-core/" | |
| REMOTE_HOST: "35.213.150.39" | |
| REMOTE_USER: ${{ secrets.SITEGROUND_SSH_USERNAME }} | |
| REMOTE_PORT: ${{ secrets.SITEGROUND_SSH_PORT || '18765' }} | |
| TARGET: "${{ secrets.SITEGROUND_SSH_TARGET_PATH }}/app-core/" | |
| EXCLUDE: "/node_modules/, /.git/, /.env, /writable/cache/, /writable/session/, /tests/" | |
| # 2. DEPLOY PUBLIC_HTML | |
| # Akan dikirim ke: {TARGET_PATH}/public_html/ | |
| - name: Deploy Public Files (public_html) | |
| uses: easingthemes/ssh-deploy@main | |
| env: | |
| SSH_PRIVATE_KEY: ${{ secrets.SITEGROUND_SSH_PRIVATE_KEY }} | |
| ARGS: "-rlgoDzvc -i" | |
| SOURCE: "./" | |
| REMOTE_HOST: "35.213.150.39" | |
| REMOTE_USER: ${{ secrets.SITEGROUND_SSH_USERNAME }} | |
| REMOTE_PORT: ${{ secrets.SITEGROUND_SSH_PORT || '18765' }} | |
| TARGET: "${{ secrets.SITEGROUND_SSH_TARGET_PATH }}/public_html/" | |
| EXCLUDE: "/node_modules/, /.git/, /app-core/, /.env, /.github/, /.vscode/, /.gemini/, /scratch/, /*.md, /database.sql" |