Git Product home page Git Product logo

acoppes / unity-upm-gitpackagepusher Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 466 KB

Unity Plugin that, given a folder with the unity package layout, it will automatically push it to Github and create a branch and tags with only its contents in order to use it later as a dependency for another project.

License: MIT License

C# 100.00%
unity plugin release automation upm upm-package openupm

unity-upm-gitpackagepusher's Introduction

Unity Package Manager Git Pusher

Given a folder with the unity package layout, this Unity plugin will allow you to automatically push a version of it to Github and create specific branches and tags with only its contents in order to use it later as a upm dependency for another Unity project.

openupm

Demo

This is a simple tool to automatically push your code into a structure interpreted by UPM. It uses a special branch for all the stripped code using the package name, and it creates a tag with the package.name-version based on the current package.json data.

For example, if you have a project com.gemserk.myproject in version 0.1.0 with the following structure:

Root/
    Assets/
        MyCustomLibrary/
            package.json
            MyCustomLibrary.asmdef
            Code/
                MyCode.cs
    OtherScripts/

It will create a branch named com.gemserk.myproject with only the code related to the package, and with the following content

Root/
    MyCustomLibrary/
        package.json
        MyCustomLibrary.asmdef
        Code/
            MyCode.cs

And a tag com.gemserk.myproject-0.1.0 pointing to current version, and will increase version patch by one in master.

The project itself is published using its own code.

Install

Download from OpenUPM or just open Package Manager and add git URL https://github.com/acoppes/upmgitpusher.git#com.gemserk.upmgitpusher for latest version or check tags for previous versions.

How to use

Just create a folder with your package.json and all the stuff you want to export.

Then, select Assets/UPM Git Package/Publish Patch

How to publish

Preferences

You can configure some default behaviours in user preferences

Configure

TODO

  • Publish Major and Minor version changes too.
  • Select specific package.json instead of just finding it (in the case there are multiple libraries).
  • Support for having a latest tag which points to the last published release.
  • Support for -preview version notation.

unity-upm-gitpackagepusher's People

Contributors

acoppes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.