Skip to content

Commit 7b99f23

Browse files
committed
Added package.json
# Added - Added package.json. - Added package workflow.
1 parent c53f01c commit 7b99f23

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

.github/workflows/package.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Export Package
2+
3+
on:
4+
pull_request: {}
5+
push: { branches: [main] }
6+
7+
env:
8+
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE_2020 }}
9+
10+
jobs:
11+
build:
12+
name: Build UnityPackage
13+
runs-on: ubuntu-latest
14+
steps:
15+
# Checkout
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
with:
19+
lfs: true
20+
21+
# Cache
22+
- name: Cache
23+
uses: actions/cache@v2
24+
with:
25+
path: Library
26+
key: Library
27+
restore-keys: Library-
28+
29+
# Build
30+
- name: Build .unitypackage
31+
uses: game-ci/unity-builder@v2
32+
with:
33+
unityVersion: 2020.3.8f1
34+
buildMethod: MackySoft.PackageTools.Editor.UnityPackageExporter.Export
35+
36+
# Upload
37+
- name: Upload .unitypackage
38+
uses: actions/upload-artifact@v2
39+
with:
40+
name: Unity Package
41+
path: Build
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "com.mackysoft.serializereference-extensions",
3+
"displayName": "SerializeReference Extensions",
4+
"version": "1.0.1",
5+
"unity": "2019.4",
6+
"description": "Provide popup to specify the type of the field serialized by the [SerializeReference] attribute in the inspector.",
7+
"keywords": [ "SerializeReference", "Editor" ],
8+
"license": "MIT",
9+
"dependencies": {}
10+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/package.json.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)