feat: split packages and rename apps #53
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: web client deploy development | |
| on: | |
| push: | |
| branches: [dev] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-22.04 | |
| environment: development | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: build | |
| run: | | |
| rm ./apps/web/.env && mv ./apps/web/.env.dev ./apps/web/.env | |
| yarn set version 3.8.1 | |
| yarn install --immutable --immutable-cache | |
| yarn web codegen | |
| yarn web build | |
| - name: scp | |
| uses: appleboy/scp-action@v0.1.7 | |
| with: | |
| host: ${{ secrets.SSH_HOST }} | |
| username: ${{ secrets.SSH_USERNAME }} | |
| key: ${{ secrets.SSH_PEM_KEY }} | |
| port: ${{ secrets.SSH_PORT }} | |
| source: ./apps/web/build/* | |
| # TODO: 패키지 구조 변경에 따라 target 디렉토리도 변경해야함 | |
| target: ~/dialga/apps/web-client/build | |
| strip_components: 3 |