Is there a way to auto update your plugins with github?

Discussion in 'Plugin Development' started by WingedMLGPro, Jul 1, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    WingedMLGPro

    Hey everyone!
    I was wander if there Is there a way to auto update your plugins with github?
    If there is plz tell me!
    Thanks
    -WingedMLGPro
     
  2. Offline

    RainoBoy97

    Yes. You would have to create a script that listen to changes in the repo, then automatically pull those changes and compile it.
     
  3. Offline

    WingedMLGPro

  4. Offline

    RainoBoy97

    @WingedMLGPro
    1. check if repo contains new code
    2. if it doesnt go to step 1, if it does continue to step 3
    3. pull repo from github
    4. compile
    5. deploy the plugin to server
    6. schedule server for restart
     
    WesJD likes this.
  5. Offline

    KingFaris11

    ^ In the first place, if it's a public plugin to be added on BukkitDev, I'm pretty sure this isn't allowed. You can only fetch files from Curse/BukkitDev.
     
  6. Offline

    WingedMLGPro

    @RainoBoy97 using Bukkit coding or would i have to learn to write GitHub coding or something like that

    @KingFaris11 no, its a plugin to be added on my server.

    EDIT by Timtower: merged posts
     
    Last edited by a moderator: Jul 1, 2015
  7. Offline

    RainoBoy97

    @WingedMLGPro
    It can be done in Java, but you could also script it in shell/batch.
     
  8. Offline

    WingedMLGPro

    @RainoBoy97 Anyidea where i could get an idea of what im meant to write?
    and where would i put it on my project?
     
  9. Offline

    KingFaris11

Thread Status:
Not open for further replies.

Share This Page