Skip to content

remove prommis build stuff #161

remove prommis build stuff

remove prommis build stuff #161

name: App build
on:
push:
branches:
- "use-env-for-project"
defaults:
run:
# -l: use login shell (required when using Conda)
shell: bash -l {0}
env:
PYTEST_ADDOPTS: --color=yes
jobs:
windows-build:
name: Windows Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment-build.yml
activate-environment: watertap-ui-env
miniforge-version: latest
- name: Install Azure Signtool
run: |
dotnet tool install --global AzureSignTool
- name: Add theme to .env file
working-directory: ./electron/ui
run: |
echo REACT_APP_THEME=watertap >> .env
- name: Install Electron JS dependencies
run: |
npm --prefix electron clean-install
- name: Install frontend JS dependencies
run: |
npm --prefix electron/ui clean-install
- name: Get idaes extensions
run: idaes get-extensions
- name: Install Watertap locally
working-directory: ../
run: git clone https://github.com/watertap-org/watertap.git && cd watertap && pip install --progress-bar off .
# - name: Install Prommis
# run: pip install --progress-bar off prommis
- name: Install watertap-ui Python package
run: |
pip install --progress-bar off .
- name: Transfer Entry points
run: |
python move_entrypoints.py
- name: Build Backend
run: npm --prefix electron run build-backend
- name: Build Frontend
run: npm --prefix electron run build-frontend-win
- name: Build Windows Distribution
run: npm --prefix electron run electron-build-win
- name: Sign Windows Distribution
run: |
AzureSignTool sign -kvu "${{ secrets.AZURE_KEY_VAULT_URI }}" -kvi "${{ secrets.AZURE_CLIENT_ID }}" -kvt "${{ secrets.AZURE_TENANT_ID }}" -kvs "${{ secrets.AZURE_CLIENT_SECRET }}" -kvc ${{ secrets.AZURE_CERT_NAME }} -tr http://timestamp.digicert.com -v electron/dist/WaterTAP-UI_24.11.11_win64.exe
- name: Upload artifact for windows build
uses: actions/upload-artifact@v4
if: always()
with:
name: windows-dist
path: |
electron/dist/WaterTAP-UI_24.11.11_win64.exe