Skip to content

Commit

Permalink
Create Windows git hub release
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-IX committed Apr 21, 2024
1 parent 79437bd commit f4f43e2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main
name: Linux Release

on:
push:
Expand All @@ -23,7 +23,7 @@ jobs:
source ./.venv/bin/activate
pip install -e ./
python build_style.py
sh ./build_linux.sh
sh ./scripts/build_linux.sh
- name: Zipping
run: |
echo "Zipping to Blender_Launcher_${{ env.RELEASE_VERSION }}_Ubuntu_x64.zip"
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/windows_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Windows Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Build
run: |
python -m venv .venv
.venv\Scripts\activate
pip install -e ./
python build_style.py
.\scripts\build_win.bat
- name: Zipping
run: |
echo "Zipping to Blender_Launcher_${{ env.RELEASE_VERSION }}_Windows_x64.zip"
Compress-Archive -Path .\dist\release -DestinationPath Blender_Launcher_${{ env.RELEASE_VERSION }}_Windows_x64.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./Blender_Launcher_${{ env.RELEASE_VERSION }}_Windows_x64.zip

0 comments on commit f4f43e2

Please sign in to comment.