-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (39 loc) · 1.18 KB
/
windows_release.yml
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
name: Windows Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
python-version: "3.12"
- name: GitHub Tag
run: |
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Build
run: |
echo "Venv setup"
python -m venv .venv
.venv\Scripts\activate
echo "Installing dependencies"
pip install -e ./
echo "Building style"
python build_style.py
echo "Building"
cd .\scripts\
.\build_win.bat
- name: Zipping
run: |
echo "Zipping to Blender_Launcher_${{ github.ref_name }}_Windows_x64.zip"
Compress-Archive -Path ".\dist\release\Blender Launcher.exe" -DestinationPath Blender_Launcher_${{ github.ref_name }}_Windows_x64.zip
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./Blender_Launcher_${{ github.ref_name }}_Windows_x64.zip