-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathprerelease_windows_installer.yml
More file actions
44 lines (41 loc) · 1.4 KB
/
prerelease_windows_installer.yml
File metadata and controls
44 lines (41 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Prerelease MTFG Installer
on:
workflow_dispatch:
jobs:
miniconda:
name: Miniconda ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["windows-latest"]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: build-installer
environment-file: ./contrib/Installer/environment.yaml
python-version: 3.9
auto-activate-base: false
- name: Collect Conda Info
shell: bash -l {0}
run: |
conda info
conda env export
- name: Get Version
shell: bash -l {0}
run: |
echo "INSTALLER_VERSION=$(grep '^VERSION' ./contrib/Installer/mtfg-ofs-extension-installer.py | cut -d '=' -f 2 | sed 's/\"//g' | sed 's/ //g')" >> $GITHUB_ENV
- name: Print Version
run: echo $INSTALLER_VERSION
- name: Build Installer
shell: bash -l {0}
working-directory: ./contrib/Installer
run: |
pyinstaller --add-data="assets/*;./" --noupx --onefile mtfg-ofs-extension-installer.py
- uses: actions/upload-artifact@v3
with:
name: mtfg-ofs-extension-installer-${{env.INSTALLER_VERSION}}.exe
path: ./contrib/Installer/dist/mtfg-ofs-extension-installer.exe
retention-days: 7