Skip to content

Commit

Permalink
fix: attempt to add webgltemplate folder in the package
Browse files Browse the repository at this point in the history
  • Loading branch information
momintlh committed Aug 23, 2024
1 parent 73a8d1f commit 95c5f1f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 22 deletions.
44 changes: 24 additions & 20 deletions .github/workflows/packaging.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Create Unity Package on release tag

on:
on:
push:
tags:
- v0.*
Expand All @@ -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
- 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
9 changes: 7 additions & 2 deletions .github/workflows/testpackage.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Create Unity Package on release tag

on: [push, pull_request]
on:
[push, pull_request]

jobs:
echo:
Expand All @@ -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
Expand All @@ -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
path: output/playroomkit.unitypackage

0 comments on commit 95c5f1f

Please sign in to comment.