From 95c5f1f5e64f19d22fd42864a20dfc953747f01e Mon Sep 17 00:00:00 2001 From: momintlh <77355191+momintlh@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:29:58 +0500 Subject: [PATCH] fix: attempt to add webgltemplate folder in the package --- .github/workflows/packaging.yaml | 44 ++++++++++++++++-------------- .github/workflows/testpackage.yaml | 9 ++++-- 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/.github/workflows/packaging.yaml b/.github/workflows/packaging.yaml index 98b0f6d..af82735 100644 --- a/.github/workflows/packaging.yaml +++ b/.github/workflows/packaging.yaml @@ -1,6 +1,6 @@ name: Create Unity Package on release tag -on: +on: push: tags: - v0.* @@ -11,25 +11,29 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v3 - - run: | - echo "Assets/PlayroomKit.meta" > metaList - echo "Assets/Plugins.meta" >> metaList - find Assets/PlayroomKit/ -name \*.meta >> metaList - echo metaList + - uses: actions/checkout@v3 - - run: mkdir output + - run: | + echo "Assets/PlayroomKit.meta" > metaList + echo "Assets/Plugins.meta" >> metaList + echo "Assets/WebGLTemplates.meta" >> metaList + find Assets/PlayroomKit/ -name \*.meta >> metaList + find Assets/WebGLTemplates/ -name \*.meta >> metaList + echo metaList - - name: Set release version ENV - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - run: mkdir output - - uses: pCYSl5EDgo/create-unitypackage@master - with: - package-path: 'output/playroomkit.unitypackage' - include-files: metaList - - name: Release - uses: softprops/action-gh-release@v1 - with: - draft: true - generate_release_notes: true - files: output/playroomkit.unitypackage \ No newline at end of file + - name: Set release version ENV + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + + - uses: pCYSl5EDgo/create-unitypackage@master + with: + package-path: "output/playroomkit.unitypackage" + include-files: metaList + + - name: Release + uses: softprops/action-gh-release@v1 + with: + draft: true + generate_release_notes: true + files: output/playroomkit.unitypackage diff --git a/.github/workflows/testpackage.yaml b/.github/workflows/testpackage.yaml index dcda69b..a5d003e 100644 --- a/.github/workflows/testpackage.yaml +++ b/.github/workflows/testpackage.yaml @@ -1,6 +1,7 @@ name: Create Unity Package on release tag -on: [push, pull_request] +on: + [push, pull_request] jobs: echo: @@ -9,10 +10,13 @@ jobs: contents: write steps: - uses: actions/checkout@v3 + - run: | echo "Assets/PlayroomKit.meta" > metaList echo "Assets/Plugins.meta" >> metaList + echo "Assets/WebGLTemplates.meta" >> metaList find Assets/PlayroomKit/ -name \*.meta >> metaList + find Assets/WebGLTemplates/ -name \*.meta >> metaList echo metaList - run: mkdir output @@ -24,7 +28,8 @@ jobs: with: package-path: 'output/playroomkit.unitypackage' include-files: metaList + - uses: actions/upload-artifact@v3 with: name: playroomkit.unitypackage - path: output/playroomkit.unitypackage \ No newline at end of file + path: output/playroomkit.unitypackage