Skip to content

Commit

Permalink
[CI] fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Feb 11, 2024
1 parent 0ed6c3e commit 138888e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
tag: ${{ github.event.inputs.tag }}
dry-run: ${{ fromJson(github.event.inputs.dry-run) }}

build-unity:
needs: [update-version-number]
runs-on: ubuntu-latest
Expand All @@ -39,30 +39,30 @@ jobs:
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# set release tag(*.*.*) to env.GIT_TAG
- run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Decode Unity License File
run: |
mkdir ./tmp
echo -n ${{ secrets.UNITY_LICENSE_2020_1_BASE64 }} | base64 --decode > $UNITY_LICENSE_FILE
- run: $UNITY_BIN -quit -batchmode -nographics -silent-crashes -logFile -manualLicenseFile $UNITY_LICENSE_FILE || exit 0

# set release tag(*.*.*) to env.GIT_TAG
- run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Export unitypackage
run: $UNITY_BIN -quit -batchmode -nographics -logFile /dev/stdout -exportPackage Assets/VContainer/Runtime Assets/VContainer/Editor VContainer.${{ env.GIT_TAG }}.unitypackage -projectPath ./
working-directory: VContainer

- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
- name: Build SourceGenerator
run: |
dotnet build -c Release ./VContainer.SourceGenerator
dotnet build -c Release ./VContainer.SourceGenerator.Roslyn3
dotnet build -c Release ./VContainer.SourceGenerator /p:Version=${{ env.GIT_TAG }}
dotnet build -c Release ./VContainer.SourceGenerator.Roslyn3 /p:Version=${{ env.GIT_TAG }}
- name: Export unitypackage
run: $UNITY_BIN -quit -batchmode -nographics -logFile /dev/stdout -exportPackage Assets/VContainer/Runtime Assets/VContainer/Editor VContainer.${{ env.GIT_TAG }}.unitypackage -projectPath ./
working-directory: VContainer

- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 138888e

Please sign in to comment.