Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/natsuneko-laboratory/create-unitypackage
Create a UnityPackage on GitHub Actions, without Unity Editor
https://github.com/natsuneko-laboratory/create-unitypackage
github-actions unity
Last synced: 3 months ago
JSON representation
Create a UnityPackage on GitHub Actions, without Unity Editor
- Host: GitHub
- URL: https://github.com/natsuneko-laboratory/create-unitypackage
- Owner: natsuneko-laboratory
- License: mit
- Created: 2022-02-04T03:37:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-17T11:08:58.000Z (9 months ago)
- Last Synced: 2024-10-31T10:38:41.143Z (3 months ago)
- Topics: github-actions, unity
- Language: TypeScript
- Homepage: https://docs.natsuneko.cat/en-us/create-unitypackage/
- Size: 4.53 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @natsuneko-laboratory/create-unitypackage
Create a UnityPackage on GitHub Actions, without Unity Editor
## Properties
| Name | Type | Required | Description |
| ------------------- | ---------- | --------------------- | ----------------------------------------------------------------------------- |
| `root` | `string` | No (default: `cwd()`) | the Unity project root directory |
| `files` | `string[]` | No (default: `[]`) | the actual file paths (not meta) to include to unitypackage |
| `files-glob` | `string[]` | No (default: `[]`) | the glob patterns for actual file paths (not meta) to include to unitypackage |
| `respect-gitignore` | `boolean` | No (default: `true`) | respect `.gitignore` / `.npmignore` file for filtering files |
| `dest` | `string` | Yes | the destination path for creating unitypackage |## Example
```yml
name: "Release by Tag"on:
push:
tags:
- v\d+\.\d+\.\d+
workflow_dispatch:jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true- name: create unitypackage from files
uses: natsuneko-laboratory/create-unitypackage@v3
with:
files: |
./Assets/NatsunekoLaboratory/MonoBehaviour.cs
./Assets/NatsunekoLaboratory/Resources/Logo.png
dest: test.unitypackage- name: create unitypackage from glob pattern
uses: natsuneko-laboratory/create-unitypackage@v3
with:
files-glob: |
./Assets/NatsunekoLaboratory/**/*.cs
dest: test.unitypackage
```If you want to see more examples, please check [`.github/workflows/action.yml`](.github/workflows/action.yml).
## License
MIT by [@6jz](https://to.natsuneko.com/6jz)