|
7 | 7 | jobs:
|
8 | 8 | build-unity:
|
9 | 9 | 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 |
15 | 10 | 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 |
24 | 11 | - run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
25 | 12 |
|
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 |
29 | 14 | 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 |
32 | 24 | - uses: actions/upload-artifact@v2
|
33 | 25 | with:
|
34 | 26 | name: VContainer.${{ env.GIT_TAG }}.unitypackage
|
35 |
| - path: ./VContainer/VContainer.${{ env.GIT_TAG }}.unitypackage |
| 27 | + path: VContainer.${{ env.GIT_TAG }}.unitypackage |
36 | 28 |
|
37 | 29 | create-release:
|
38 | 30 | needs: [build-unity]
|
|
0 commit comments