mirror of
https://github.com/DarklightGames/io_scene_psk_psa.git
synced 2024-11-27 16:10:48 +01:00
Updated workflow file to be targetted against the stable version of 4.2
This commit is contained in:
parent
da4960298b
commit
03c69783b3
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -11,13 +11,19 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
BLENDER_VERSION: blender-4.2.0-beta+v42.d19d23e91f65-linux.x86_64-release
|
BLENDER_VERSION: blender-4.2.0-linux-x64
|
||||||
|
ADDON_NAME: io_scene_psk_psa
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: SebRollen/toml-action@v1.2.0
|
||||||
|
id: read_manifest
|
||||||
|
with:
|
||||||
|
file: '${{ env.ADDON_NAME }}/blender_manifest.toml'
|
||||||
|
field: 'version'
|
||||||
- name: Set derived environment variables
|
- name: Set derived environment variables
|
||||||
run: |
|
run: |
|
||||||
echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
||||||
echo "BLENDER_URL=https://cdn.builder.blender.org/download/daily/${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
echo "BLENDER_URL=https://mirrors.iu13.net/blender/release/Blender4.2/${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
||||||
- name: Install Blender Dependencies
|
- name: Install Blender Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install libxxf86vm-dev -y
|
sudo apt-get install libxxf86vm-dev -y
|
||||||
@ -35,14 +41,14 @@ jobs:
|
|||||||
echo "${{ github.workspace }}/${{ env.BLENDER_VERSION }}/" >> $GITHUB_PATH
|
echo "${{ github.workspace }}/${{ env.BLENDER_VERSION }}/" >> $GITHUB_PATH
|
||||||
- name: Build extension
|
- name: Build extension
|
||||||
run: |
|
run: |
|
||||||
pushd ./io_scene_psk_psa
|
pushd ./${{ env.ADDON_NAME }}
|
||||||
blender --command extension build
|
blender --command extension build
|
||||||
mkdir artifact
|
mkdir artifact
|
||||||
unzip -q io_scene_psk_psa.zip -d ./artifact
|
unzip -q ${{ env.ADDON_NAME }}-${{ steps.read_manifest.outputs.value }}.zip -d ./artifact
|
||||||
popd
|
popd
|
||||||
- name: Archive addon
|
- name: Archive addon
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: io_scene_psk_psa-${{ github.ref_name }}-${{ github.sha }}
|
name: ${{ env.ADDON_NAME }}-${{ github.ref_name }}-${{ github.sha }}
|
||||||
path: |
|
path: |
|
||||||
./io_scene_psk_psa/artifact/*
|
./${{ env.ADDON_NAME }}/artifact/*
|
||||||
|
Loading…
Reference in New Issue
Block a user