Skip to content

Commit 427cbf1

Browse files
authored
Unitypackage (#124)
* Use .unitypackage for releases too * add instructions on how to install unitypackage * add trilitech as owner of the structured repository
1 parent 73a7ee1 commit 427cbf1

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22
on:
33
push:
44
tags:
5-
- '*.*.*'
5+
- "*.*.*"
66

77
jobs:
88
release:
@@ -11,20 +11,41 @@ jobs:
1111
permissions:
1212
contents: write
1313
steps:
14+
- name: Checkout Unity project structure
15+
uses: actions/checkout@v2
16+
with:
17+
repository: trilitech/tezos-unity-sdk-structured
18+
1419
- name: Check out the repo
1520
uses: actions/checkout@v3
21+
with:
22+
path: Assets/TezosUnitySdk
1623

1724
- name: Archive Release
1825
uses: thedoctor0/[email protected]
1926
with:
20-
type: 'zip'
21-
filename: 'tezos-unity-sdk.zip'
22-
exclusions: '*.git* *.github*'
27+
type: "zip"
28+
directory: ./Assets/TezosUnitySdk/
29+
filename: "tezos-unity-sdk.zip"
30+
exclusions: "*.git* *.github*"
31+
32+
- name: Create unitypackageFiles
33+
run: |
34+
echo "Assets/TezosUnitySdk.meta" > unitypackageFiles
35+
mv Assets/TezosUnitySdk/Samples~ Assets/TezosUnitySdk/Samples
36+
find ./Assets/TezosUnitySdk/ -name \*.meta ! -path "./Assets/TezosUnitySdk/Tests*" ! -path "./Assets/TezosUnitySdk/*.md.meta" >> unitypackageFiles
37+
38+
- name: Create unitypackage
39+
uses: pCYSl5EDgo/create-unitypackage@master
40+
with:
41+
package-path: 'TezosUnitySdk.unitypackage'
42+
include-files: unitypackageFiles
2343

2444
- name: Parse changelog
2545
id: changelog
2646
uses: mindsers/changelog-reader-action@v2
2747
with:
48+
path: ./Assets/TezosUnitySdk/CHANGELOG.md
2849
version: ${{ github.ref_name }}
2950

3051
- name: Release
@@ -36,4 +57,6 @@ jobs:
3657
## ${{ steps.changelog.outputs.date }}
3758
${{ steps.changelog.outputs.changes }}
3859
prerelease: ${{ steps.changelog.outputs.status == 'prereleased' }}
39-
files: 'tezos-unity-sdk.zip'
60+
files: |
61+
./Assets/TezosUnitySdk/tezos-unity-sdk.zip
62+
TezosUnitySdk.unitypackage

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ developers with the ability to:
2626
The Tezos SDK supports Desktop, Android, iOS, and browsers. Beyond allowing game developers to interact with the Tezos
2727
blockchain, this SDK is a helpful resource for developing any Tezos decentralized application (dApp).
2828

29+
### Install from unitypackage file
30+
31+
You can install TezosUnitySdk via `.unitypackage` file. To load a package from a unitypackage file:
32+
33+
* Go to [Releases](https://github.com/trilitech/tezos-unity-sdk/releases) page and download the latest `TezosUnitySdk.unitypackage`.
34+
* Open your project in Unity Editor.
35+
* Double-click the `TezosUnitySdk.unitypackage` file to import it into the current project.
36+
2937
### Install from a Git URL
3038

3139
You can install the UPM package via directly Git URL. To load a package from a Git URL:

0 commit comments

Comments
 (0)