-
Notifications
You must be signed in to change notification settings - Fork 54
54 lines (52 loc) · 1.6 KB
/
release_windows_bin.yaml
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
44
45
46
47
48
49
50
51
52
53
54
on:
release:
types: [published]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
os: ['windows-latest']
steps:
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.OXOTITAN_GITHUB_KEY }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.0.0'
- name: Install Node dependencies
run: npm install
working-directory: src/oxotitan
- name: Generate Nuxt
run: npm run generate
working-directory: src/oxotitan
- name: Create ostorlab ui static folder
run: mkdir -p ostorlab/ui/static
working-directory: src
- name: Copy Nuxt output
run: cp -r src/oxotitan/.output/public/* src/ostorlab/ui/static
- name: Delete titan files
run: rm -rf src/oxotitan/*
shell: bash
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies.
run: |
python -m pip install --upgrade pip
pip install .
pip install .[scanner]
pip install .[agent]
pip install .[serve]
pip install pyinstaller
- run: |
pyinstaller --name oxo_${{ matrix.os }} --onefile --add-data="./*:." --collect-all pyaxmlparser --hidden-import alembic --hidden-import docker --hidden-import click src/ostorlab/main.py
- name: Release
uses: softprops/action-gh-release@v2
with:
files: dist/oxo_${{ matrix.os }}.exe