Awesome
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 fromworking-folder
. This should end with .unitypackage.include-files
- A file path which includes .meta files&directories relative fromworking-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 fromworking-folder
. Default Value => "./"working-folder
- This action changes directory at first step. All other input values are then read atworking-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