add demo/dem login for demo sites #632
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: Deploy to WP Engine | |
| on: | |
| push: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🏗 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🏗 Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: '10.8.0' | |
| - name: 👷 Build | |
| run: | | |
| pnpm install | |
| composer prefix-dependencies | |
| composer install --no-dev | |
| pnpm settings build | |
| pnpm analytics build | |
| - name: 🚀 Deploy to WP Engine | |
| uses: wpengine/github-action-wpe-site-deploy@v3 | |
| with: | |
| WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }} | |
| WPE_ENV: wcposdev | |
| REMOTE_PATH: "wp-content/plugins/woocommerce-pos" | |
| FLAGS: >- | |
| -azvr --inplace --delete --delete-excluded --exclude-from=.distignore | |
| -e "ssh -o StrictHostKeyChecking=no -o ControlMaster=no -p 22 -i /github/home/.ssh/wpe_id_rsa" | |
| CACHE_CLEAR: TRUE |