Skip to content

Commit

Permalink
Unitypackage (#124)
Browse files Browse the repository at this point in the history
* Use .unitypackage for releases too

* add instructions on how to install unitypackage

* add trilitech as owner of the structured repository
  • Loading branch information
fraidev authored Aug 11, 2023
1 parent 73a7ee1 commit 427cbf1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
push:
tags:
- '*.*.*'
- "*.*.*"

jobs:
release:
Expand All @@ -11,20 +11,41 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout Unity project structure
uses: actions/checkout@v2
with:
repository: trilitech/tezos-unity-sdk-structured

- name: Check out the repo
uses: actions/checkout@v3
with:
path: Assets/TezosUnitySdk

- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'tezos-unity-sdk.zip'
exclusions: '*.git* *.github*'
type: "zip"
directory: ./Assets/TezosUnitySdk/
filename: "tezos-unity-sdk.zip"
exclusions: "*.git* *.github*"

- name: Create unitypackageFiles
run: |
echo "Assets/TezosUnitySdk.meta" > unitypackageFiles
mv Assets/TezosUnitySdk/Samples~ Assets/TezosUnitySdk/Samples
find ./Assets/TezosUnitySdk/ -name \*.meta ! -path "./Assets/TezosUnitySdk/Tests*" ! -path "./Assets/TezosUnitySdk/*.md.meta" >> unitypackageFiles
- name: Create unitypackage
uses: pCYSl5EDgo/create-unitypackage@master
with:
package-path: 'TezosUnitySdk.unitypackage'
include-files: unitypackageFiles

- name: Parse changelog
id: changelog
uses: mindsers/changelog-reader-action@v2
with:
path: ./Assets/TezosUnitySdk/CHANGELOG.md
version: ${{ github.ref_name }}

- name: Release
Expand All @@ -36,4 +57,6 @@ jobs:
## ${{ steps.changelog.outputs.date }}
${{ steps.changelog.outputs.changes }}
prerelease: ${{ steps.changelog.outputs.status == 'prereleased' }}
files: 'tezos-unity-sdk.zip'
files: |
./Assets/TezosUnitySdk/tezos-unity-sdk.zip
TezosUnitySdk.unitypackage
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ developers with the ability to:
The Tezos SDK supports Desktop, Android, iOS, and browsers. Beyond allowing game developers to interact with the Tezos
blockchain, this SDK is a helpful resource for developing any Tezos decentralized application (dApp).

### Install from unitypackage file

You can install TezosUnitySdk via `.unitypackage` file. To load a package from a unitypackage file:

* Go to [Releases](https://github.com/trilitech/tezos-unity-sdk/releases) page and download the latest `TezosUnitySdk.unitypackage`.
* Open your project in Unity Editor.
* Double-click the `TezosUnitySdk.unitypackage` file to import it into the current project.

### Install from a Git URL

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

0 comments on commit 427cbf1

Please sign in to comment.