-
Notifications
You must be signed in to change notification settings - Fork 20
36 lines (34 loc) · 1.03 KB
/
linux_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
name: Linux Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-20.04
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: |
python3 -m venv .venv
source ./.venv/bin/activate
pip install -e ./
python build_style.py
sh ./scripts/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
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./dist/release/Blender_Launcher_${{ env.RELEASE_VERSION }}_Ubuntu_x64.zip