-
Notifications
You must be signed in to change notification settings - Fork 145
41 lines (38 loc) · 1.25 KB
/
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
37
38
39
40
41
name: release
permissions:
contents: write
on:
push:
tags:
- '*_*_*'
jobs:
release:
runs-on: ubuntu-24.04
env:
BLENDER_ARCHIVE_URL: https://mirrors.ocf.berkeley.edu/blender/release/Blender4.2/blender-4.2.0-linux-x64.tar.xz
steps:
- name: Install package
run: |
sudo apt-get update -qq
sudo apt-get dist-upgrade -y
sudo apt-get install -y advancecomp blender curl git python3 python3-numpy ruby shellcheck xz-utils
- name: Cache archive
id: cache-archive
uses: actions/cache@v4
with:
path: blender.tar.xz
key: ${{ env.BLENDER_ARCHIVE_URL }}-archive-1
- name: Download archive
if: steps.cache-archive.outputs.cache-hit != 'true'
run: |
curl --fail --location --show-error --retry 5 --retry-all-errors "$BLENDER_ARCHIVE_URL" -o blender.tar.xz
test "$(md5sum blender.tar.xz)" = "d4555313745524a6add308001e3198cfa blender.tar.xz"
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Release
run: ./tools/release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}