forked from playroomkit/unity
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 928 Bytes
/
testpackage.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Create Unity Package on release tag
on:
[push, pull_request]
jobs:
echo:
runs-on: ubuntu-latest
permissions:
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
- 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
- uses: actions/upload-artifact@v3
with:
name: playroomkit.unitypackage
path: output/playroomkit.unitypackage