Skip to content
box

GitHub Action

create-unitypackage

v1.2.3 Latest version

create-unitypackage

box

create-unitypackage

This action sets up an Unity Editor for use in actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: create-unitypackage

uses: pCYSl5EDgo/[email protected]

Learn more about this action in pCYSl5EDgo/create-unitypackage

Choose a version

create-unitypackage

Create unitypackage file without Unity Editor Installation.

Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Required Inputs

  • package-path - Output unitypackage path relative from working-folder. This should end with .unitypackage.
  • include-files - A file path which includes .meta files&directories relative from working-folder. Each line of this file should ends with .meta file extension. Do not forget about directories.

Not Required Inputs

  • project-folder - Unity project folder relative from working-folder. Default Value => "./"
  • working-folder - This action changes directory at first step. All other input values are then read at working-folder. Default Value => "./"

Example workflow

name: Create Unity Package

on: push

jobs:
  echo:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: |
        echo "Assets/Voiceer.meta" > metaList
        find Assets/Voiceer/ -name \*.meta >> metaList

    - run: mkdir a

    - uses: pCYSl5EDgo/create-unitypackage@master
      with:
        package-path: 'a/output.unitypackage'
        include-files: metaList
    - uses: actions/upload-artifact@master
      with:
        path: a
        name: package

License

The scripts and documentation in this project are released under the MIT License