diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ed80e080..30cb742f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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