-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |