Add GitHub Actions workflow to build the offline release #1
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: Offline Build | |
| on: | |
| push: | |
| branches: [ "release" ] | |
| pull_request: #TODO remove, included to test this workflow | |
| branches: [ "Dev" ] | |
| jobs: | |
| build_windows: | |
| name: Offline Build - Windows | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - name: Build Offline Release | |
| run: | | |
| python SettingsToJson.py | |
| mkdir GUI/python | |
| cp *.py GUI/python | |
| cd GUI | |
| mv -Force package_release.json package.json | |
| npm i | |
| npm run ng-prod | |
| npm run dist |