Skip to content

Commit b600f17

Browse files
committed
Use pCYSl5EDgo/create-unitypackage
1 parent a9c3da9 commit b600f17

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed
File renamed without changes.

Diff for: .github/workflows/release.yaml

+11-19
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,24 @@ on:
77
jobs:
88
build-unity:
99
runs-on: ubuntu-latest
10-
env:
11-
UNITY_LICENSE_FILE: ./tmp/ulf
12-
UNITY_BIN: /opt/Unity/Editor/Unity
13-
container:
14-
image: gableroux/unity3d:2020.1.13f1-linux-il2cpp
1510
steps:
16-
- uses: actions/checkout@v2
17-
- name: Decode Unity License File
18-
run: |
19-
mkdir ./tmp
20-
echo -n ${{ secrets.UNITY_LICENSE_2020_1_BASE64 }} | base64 --decode > $UNITY_LICENSE_FILE
21-
- run: $UNITY_BIN -quit -batchmode -nographics -silent-crashes -logFile -manualLicenseFile $UNITY_LICENSE_FILE || exit 0
22-
23-
# set release tag(*.*.*) to env.GIT_TAG
2411
- run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
2512

26-
# Execute scripts: Export Package
27-
- name: Export unitypackage
28-
run: $UNITY_BIN -quit -batchmode -nographics -logFile /dev/stdout -exportPackage Assets/VContainer/Runtime Assets/VContainer/Editor VContainer.${{ env.GIT_TAG }}.unitypackage -projectPath ./
13+
- name: Create meta list
2914
working-directory: VContainer
30-
31-
# Store artifacts.
15+
run: |
16+
echo Assets/VContainer/Runtime.meta >> metaList
17+
find Assets/VContainer/Runtime -name \*.meta >> metaList
18+
echo Assets/VContainer/Editor.meta >> metaList
19+
find Assets/VContainer/Editor -name \*.meta >> metaList
20+
- uses: pCYSl5EDgo/create-unitypackage@master
21+
with:
22+
package-path: VContainer.${{ env.GIT_TAG }}.unitypackage
23+
include-files: VContainer/metaList
3224
- uses: actions/upload-artifact@v2
3325
with:
3426
name: VContainer.${{ env.GIT_TAG }}.unitypackage
35-
path: ./VContainer/VContainer.${{ env.GIT_TAG }}.unitypackage
27+
path: VContainer.${{ env.GIT_TAG }}.unitypackage
3628

3729
create-release:
3830
needs: [build-unity]

0 commit comments

Comments
 (0)