From 6736cf1f647c8908bff126f1c3d0cb74ad3b261b Mon Sep 17 00:00:00 2001 From: Cibbi <12004047+Cibbi@users.noreply.github.com> Date: Sun, 22 Oct 2023 14:52:33 +0200 Subject: [PATCH] Update to support newer version of the packaging tool --- README.md | 43 ++++++++++++++++++++++++++++++++++++++----- action.yml | 7 +++++++ 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d677a00..6041436 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,20 @@ +
+ # VRC Packaging Action -[![Generic badge](https://img.shields.io/github/release/VRLabs/VRC-Packaging-Action?display_name=tag&label=Release)](https://github.com/VRLabs/VRC-Packaging-Action/releases/latest) -[![Generic badge](https://img.shields.io/badge/License-MIT-informational.svg)](https://github.com/VRLabs/VRC-Packaging-Action/blob/main/LICENSE) -This GitHub Action packages Unity assets in both `unitypackage` and `vcc` package formats. It is based on the `vrctools-packaging` Docker image. +[![Generic badge](https://img.shields.io/github/release/VRLabs/VRCTools-Packaging-Action?display_name=tag&label=Release)](https://github.com/VRLabs/VRCTools-Packaging-Action/releases/latest) +[![Generic badge](https://img.shields.io/badge/License-MIT-informational.svg)](https://github.com/VRLabs/VRCTools-Packaging-Action/blob/main/LICENSE) + +[![Generic badge](https://img.shields.io/discord/706913824607043605?color=%237289da&label=DISCORD&logo=Discord&style=for-the-badge)](https://discord.vrlabs.dev/) +[![Generic badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dvrlabs%26type%3Dpatrons&style=for-the-badge)](https://patreon.vrlabs.dev/) + +GitHub Action to package Unity assets in both `unitypackage` and `vcc` package formats. It is based on the VRLabs [`VRC Packaging Tool`](https://github.com/VRLabs/VRCTools-Packaging). + +### ⬇️ [Check out on the Github Action Marketplace](https://github.com/marketplace/actions/vrc-packaging-action) + +
+ +--- ## Inputs @@ -18,6 +30,10 @@ This GitHub Action packages Unity assets in both `unitypackage` and `vcc` packag The release URL to set in the `package.json`. +### `unityReleaseUrl` + +The release URL to set in the `package.json` for the unitypackage version. + ### `noVcc` Skips the build of the `vcc` package, the `package.json` will not contain an url for the unitypackage version. @@ -47,7 +63,7 @@ uses: VRLabs/VRCTools-Packaging-Action@v1 with: path: 'Path/To/Asset' outputPath: 'Packages' - releaseUrl: 'https://github.com/User/Asset/releases/download/master/package.id-x.x.x.zip' + releaseUrl: 'https://url/to/package.id-x.x.x.zip' ``` ## VCC only example @@ -58,10 +74,14 @@ uses: VRLabs/VRCTools-Packaging-Action@v1 with: path: 'Path/To/Asset' outputPath: 'Packages' - releaseUrl: 'https://github.com/User/Asset/releases/download/master/package.id-x.x.x.zip' + releaseUrl: 'https://url/to/package.id-x.x.x.zip' noUnityPackage: 'true' ``` +## Contributors + +* [Cibbi](https://github.com/Cibbi) + ## License VRLabs VRC Packaging Action is available as-is under MIT. For more information see [LICENSE](https://github.com/VRLabs/VRC-Packaging-Action/blob/main/LICENSE). @@ -70,3 +90,16 @@ VRLabs VRC Packaging Action is available as-is under MIT. For more information s If you need help, our support channel is on [Discord](https://discord.vrlabs.dev). +
+ +[](https://vrlabs.dev "VRLabs") + +[](https://discord.vrlabs.dev/ "VRLabs") + +[](https://patreon.vrlabs.dev/ "VRLabs") + +[](https://twitter.com/vrlabsdev "VRLabs") + +
+ + diff --git a/action.yml b/action.yml index 3bcea1d..269bbb9 100644 --- a/action.yml +++ b/action.yml @@ -18,6 +18,11 @@ inputs: description: 'The release url to set in the package.json' required: false default: '' + + unityReleaseUrl: + description: 'The unity release url to set in the package.json' + required: false + default: '' noVcc: description: 'Do not build the vcc package' @@ -44,6 +49,8 @@ runs: - ${{ inputs.outputPath }} - '--releaseUrl' - ${{ inputs.releaseUrl }} + - '--unityReleaseUrl' + - ${{ inputs.unityReleaseUrl }} - '-novcc' - ${{ inputs.noVcc }} - '-nounity'