Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unitypackage #124

Merged
merged 3 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/zip-release@0.7.1
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
Loading