Skip to content

Commit

Permalink
Fix GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-IX committed Jun 22, 2024
1 parent 9afa589 commit 1ccbf26
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/linux_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Setup Python
Expand All @@ -19,18 +19,23 @@ jobs:
python-version: '3.9'
- name: Build
run: |
echo "Venv setup"
python3 -m venv .venv
source ./.venv/bin/activate
echo "Installing dependencies"
pip install -e ./
echo "Building style"
python build_style.py
sh ./scripts/build_linux.sh
echo "Building Linux"
cd ./scripts/
sh ./build_linux.sh
- name: Zipping
run: |
echo "Zipping to Blender_Launcher_${{ env.RELEASE_VERSION }}_Ubuntu_x64.zip"
cd ./dist/release/
zip Blender_Launcher_${{ env.RELEASE_VERSION }}_Ubuntu_x64.zip "./Blender Launcher"
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./dist/release/Blender_Launcher_${{ env.RELEASE_VERSION }}_Ubuntu_x64.zip
13 changes: 9 additions & 4 deletions .github/workflows/windows_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Setup Python
Expand All @@ -19,17 +19,22 @@ jobs:
python-version: '3.9'
- 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
.\scripts\build_win.bat
echo "Building"
cd .\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
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_${{ env.RELEASE_VERSION }}_Windows_x64.zip

0 comments on commit 1ccbf26

Please sign in to comment.