Skip to content

feat: upload extension to github releases #358

feat: upload extension to github releases

feat: upload extension to github releases #358

Workflow file for this run

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)" = "d4555313745524a6add308001e3198cf 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 }}