Skip to content

bump to v29.0.0-rc.11 #75

bump to v29.0.0-rc.11

bump to v29.0.0-rc.11 #75

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
publish_unity-github:
name: publish-unity-github
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: 3.13
- run: python3 build.py unity build --release
- run: |
git fetch origin upm/latest:upm/latest
git config --global user.name 'github-bot'
git config --global user.email '[email protected]'
git mv unity/Assets/Samples unity/Assets/Samples~
rm -f unity/Assets/Scripts/Properties.meta
rm -f unity/Assets/Samples.meta
rm -f unity/Assets/DefaultVolumeProfile.*
rm -f unity/Assets/UniversalRenderPipelineAsset.*
rm -f unity/Assets/UniversalRenderPipelineAsset_Renderer.*
rm -f unity/Assets/UniversalRenderPipelineGlobalSettings.*
rm -rf tools .github
find ./ -name .gitignore -type f -delete
find ./ -name .npmignore -type f -delete
git add .
git commit -am "prepare for Unity Package Release"
git branch -D upm/latest
git subtree split -P unity/Assets -b upm/latest
git checkout upm/latest
git clean -fxd
git push -f -u origin upm/latest
- id: get_upm_tag
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
return 'upm/'+context.payload.ref.replace(/refs\/tags\//, '');
- run: |
git tag $TAG upm/latest
git push origin $TAG
env:
TAG: ${{ steps.get_upm_tag.outputs.result }}
publish_nuget:
name: publish-nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: 3.13
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- id: get_version
run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3 | cut -d . -f 1,2,3)" >> $GITHUB_OUTPUT
- run: |
python3 build.py cs build --release
cd derive/bin/Release
dotnet nuget push autd3sharp.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --no-symbols
cd ../../..
cd src/bin/Release
dotnet nuget push autd3sharp.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --no-symbols