Skip to content

Static library linking on mobile (fixes iOS signing) #162

Static library linking on mobile (fixes iOS signing)

Static library linking on mobile (fixes iOS signing) #162

Workflow file for this run

name: Version
on:
pull_request:
types:
- opened
jobs:
set_version:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'release/')
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
token: ${{ github.token }}
- name: Set VERSION
run: |
version="${GITHUB_HEAD_REF#release/}"
echo $version > VERSION
sed -i "s/\"version\": \".*\"/\"version\": \"${version#v}\"/" package.json
sed -i "s/public static string Version = \".*\";/public static string Version = \"$version\";/" Runtime/LLMUnitySetup.cs
sed -i "s/PROJECT_NUMBER *= *[^ ]*/PROJECT_NUMBER = $version/" .github/doxygen/Doxyfile
git config --global user.name $GITHUB_ACTOR
git config --global user.email $GITHUB_ACTOR@users.noreply.github.com
git add VERSION
git add package.json
git add Runtime/LLMUnitySetup.cs
git add .github/doxygen/Doxyfile
git commit -m "update VERSION"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.token }}
branch: ${{ github.head_ref }}