Update develop #156
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: Build ethernet view | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - ethernet-view/** | |
| - common-front/** | |
| jobs: | |
| build-ethernet-view: | |
| name: "Build ethernet view" | |
| runs-on: ubuntu-latest | |
| env: | |
| FRONTEND_DIR: ./ethernet-view | |
| COMMON_DIR: ./common-front | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| sparse-checkout: | | |
| ethernet-view | |
| common-front | |
| - name: "Install common front dependencies" | |
| working-directory: "${{env.COMMON_DIR}}" | |
| run: npm install | |
| - name: "Build common front" | |
| working-directory: "${{env.COMMON_DIR}}" | |
| run: npm run build | |
| - name: "Install ethernet view dependencies" | |
| working-directory: "${{env.FRONTEND_DIR}}" | |
| run: npm install | |
| - name: "Build ethernet view" | |
| working-directory: "${{env.FRONTEND_DIR}}" | |
| run: npm run build | |
| - name: "Upload build" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ethernet-view | |
| path: "${{env.FRONTEND_DIR}}/static/*" | |
| retention-days: 3 | |
| compression-level: 9 |