Skip to content

Commit

Permalink
chore: create unity package
Browse files Browse the repository at this point in the history
  • Loading branch information
onerain88 committed Jul 22, 2021
1 parent d99c44b commit 7347db5
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,26 @@ jobs:

# 打包 Unity 推送插件
# 打包不包含 Gradle 配置的插件
- run: cd Push/Push.Unity
- run: |
cd ./Push/Push.Unity
echo "Assets/LeanCloud.meta" > metaList
find Assets/LeanCloud/ -name \*.meta >> metaList
find ./Assets/LeanCloud/ -name \*.meta >> metaList
- uses: pCYSl5EDgo/create-unitypackage@master
with:
project-folder: 'Push/Push.Unity'
package-path: 'unitypackage/unity-push-without-gradle.unitypackage'
include-files: metaList
project-folder: ./Push/Push.Unity
package-path: 'release/unity-push-without-gradle.unitypackage'
include-files: ./Push/Push.Unity/metaList

# 打包包含 Gradle 配置的插件
- run: |
cd ./Push/Push.Unity
echo "Assets/Plugins.meta" >> metaList
find Assets/Plugins/ -name \*.meta >> metaList
- uses: pCYSl5EDgo/create-unitypackage@master
with:
project-folder: 'Push/Push.Unity'
package-path: 'unitypackage/unity-push.unitypackage'
include-files: metaList
- run: cd -
- run: cp Push/Push.Unity/unitypackage/*.unitypackage release/
project-folder: ./Push/Push.Unity
package-path: 'release/unity-push.unitypackage'
include-files: ./Push/Push.Unity/metaList

# 发布到 Releases
- name: Release
Expand Down

0 comments on commit 7347db5

Please sign in to comment.