chore(admin): deploy build folder with rsync #2
Workflow file for this run
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 Admin Web | |
on: | |
push: | |
branches: | |
- release/alpha | |
- chore/deploy-admin-web | |
paths: | |
- ".github/workflows/**" | |
- "packages/@liexp/core/**" | |
- "packages/@liexp/shared/**" | |
- "packages/@liexp/ui/**" | |
- "services/admin-web/**" | |
jobs: | |
deploy-admin-web: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [23.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-deps | |
with: | |
hash: ${{ hashFiles('**/pnpm-lock.yaml') }} | |
- name: Update .env file for Admin Web | |
run: cp ./services/admin-web/.env.alpha ./services/admin-web/.env | |
- name: Build | |
run: | | |
pnpm packages:build | |
pnpm admin-web build:app | |
- name: Deploy on Server | |
uses: burnett01/rsync-deployments@7.0.2 | |
with: | |
switches: -arP | |
legacy_allow_rsa_hostkeys: "true" | |
path: services/admin-web/build | |
remote_path: ${{ secrets.ADMIN_WEB_DEPLOY_PATH }} | |
remote_host: ${{ secrets.ADMIN_WEB_DEPLOY_HOST }} | |
remote_user: ${{ secrets.ADMIN_WEB_DEPLOY_USER }} | |
remote_key: ${{ secrets.ADMIN_WEB_DEPLOY_KEY }} |