Skip to content

Remove add_current_module_to_path (sys.path manipulation) #7

Remove add_current_module_to_path (sys.path manipulation)

Remove add_current_module_to_path (sys.path manipulation) #7

Workflow file for this run

name: Build and Create Release
on:
push:
tags:
- "v*"
# Cancel in-progress runs when a new workflow with the same group is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-release:
runs-on: macos-latest
permissions:
contents: write
discussions: write
steps:
- uses: actions/checkout@v5
- uses: BradyAJohnston/setup-blender@v5
with:
version: 4.5
- name: Build Extension
run: |
blender -b -P build.py
- name: Create Release
run: |
gh release create ${{ github.ref_name }} --generate-notes *.zip
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload to Extensions Platform
env:
EXTENSION: csv_importer
GITHUB_TOKEN: ${{ github.token }}
run: |
RELEASE_URL=$(gh release view ${{ github.ref_name }} --json url -q .url)
echo "See release notes: ${RELEASE_URL}" > release_notes.txt
for zipfile in *.zip; do
echo "Uploading $zipfile to Blender Extensions Platform"
curl -X POST https://extensions.blender.org/api/v1/extensions/${EXTENSION}/versions/upload/ \
-H "Authorization:bearer ${{ secrets.BLENDER_EXTENSIONS_TOKEN }}" \
-F "version_file=@${zipfile}" \
-F "release_notes=<release_notes.txt"
done