Skip to content

Commit

Permalink
Fix Windows GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-IX committed Jun 22, 2024
1 parent 20acb32 commit 5a6ac51
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/windows_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- 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: GitHub Tag
run: |
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Build
run: |
echo "Venv setup"
Expand All @@ -31,10 +32,10 @@ jobs:
.\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
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_${{ env.RELEASE_VERSION }}_Windows_x64.zip
files: ./Blender_Launcher_${{ github.ref_name }}_Windows_x64.zip

0 comments on commit 5a6ac51

Please sign in to comment.