Skip to content

Commit

Permalink
docs: update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
Iam1337 authored Jan 7, 2022
1 parent 369f2d5 commit 3d64adf
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,50 @@
# @iam1337/create-unitypackage
WORK IN PROGRESS

[**semantic-release**](https://github.com/semantic-release/semantic-release) plugin to create a [unitypackage](https://docs.unity3d.com/Manual/AssetPackages.html).

[![Build Status](https://github.com/semantic-release/npm/workflows/Test/badge.svg)](https://github.com/semantic-release/npm/actions?query=workflow%3ATest+branch%3Amaster)
[![npm latest version](https://img.shields.io/npm/v/@iam1337/create-unitypackage/latest.svg)](https://www.npmjs.com/package/@iam1337/create-unitypackage)

| Step | Description |
|--------------------|-------------|
| `verifyConditions` | Verify the `packageRoot`, `projectRoot` and `output` options configuration. |
| `prepare` | Сreation unitypackage file. |

## Install

```bash
$ npm i @iam1337/create-unitypackage
```

## Usage

The plugin can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration):

```json
{
"plugins": [
["@iam1337/create-unitypackage", {
"packageRoot": "Assets/Package",
"projectRoot": "./",
"output": "Package.unitypackage"
}],
["@semantic-release/github", {
"assets": [
{"path": "Package.unitypackage", "label": "Package v${nextRelease.version}"}
]
}]
]
}
```

## Configuration

### Options

| Options | Description | Default |
|---------|-------------|---------|
| `packageRoot` | Path to the directory you want to archive to unitypackage inside the Assets directory. | - |
| `projectRoot` | Unity project directory. | `./` |
| `output` | Output unitypackage path. Must end with .unitypackage. | - |

**Note**: The `packageRoot` directory must have own .meta file.

0 comments on commit 3d64adf

Please sign in to comment.