-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (48 loc) · 1.76 KB
/
package.yml
File metadata and controls
50 lines (48 loc) · 1.76 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Create Unity Package
on: push
jobs:
package-private:
if: ${{ github.repository == 'IndoorAtlas/unity-plugin-private-new' }}
runs-on: [self-hosted, Linux]
steps:
- uses: actions/checkout@v2
- run: |
mkdir Assets pkg
mv Plugins Assets/
cp example/Assets/Plugins.meta Assets/
find Assets -name \*.meta > metaList
cat metaList
- uses: pCYSl5EDgo/create-unitypackage@master
with:
package-path: pkg/indooratlas.unitypackage
include-files: metaList
- uses: actions/upload-artifact@master
with:
path: pkg
name: indooratlas
package-public:
if: ${{ github.repository == 'IndoorAtlas/unity-plugin' }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- run: |
mkdir Assets pkg
mv Plugins Assets/
cp example/Assets/Plugins.meta Assets/
find Assets -name \*.meta > metaList
cat metaList
- uses: pCYSl5EDgo/create-unitypackage@master
with:
package-path: pkg/indooratlas.unitypackage
include-files: metaList
- uses: actions/upload-artifact@master
with:
path: pkg
name: indooratlas
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: pkg/indooratlas.unitypackage
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}