2024-03-02 12:48:23 +00:00
|
|
|
# Builds and uploads the installer and python build artifacts.
|
|
|
|
|
2024-03-02 11:45:28 +00:00
|
|
|
name: build installer
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
2024-03-02 11:53:35 +00:00
|
|
|
build-installer:
|
2024-03-02 11:45:28 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5 # expected run time: <2 min
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: setup python
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
|
|
|
cache: pip
|
|
|
|
cache-dependency-path: pyproject.toml
|
|
|
|
|
|
|
|
- name: install pypa/build
|
|
|
|
run: pip install --upgrade build
|
|
|
|
|
|
|
|
- name: setup frontend
|
|
|
|
uses: ./.github/actions/install-frontend-deps
|
|
|
|
|
|
|
|
- name: create installer
|
|
|
|
id: create_installer
|
|
|
|
run: ./create_installer.sh
|
|
|
|
working-directory: installer
|
|
|
|
|
|
|
|
- name: upload python distribution artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
path: ${{ steps.create_installer.outputs.DIST_PATH }}
|
|
|
|
|
|
|
|
- name: upload installer artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
2024-03-28 05:26:28 +00:00
|
|
|
name: installer
|
2024-03-02 11:45:28 +00:00
|
|
|
path: ${{ steps.create_installer.outputs.INSTALLER_PATH }}
|