GitSync is a simple script that allows you to use Github in Skript workflow.
- Will this work with a private repository? Yes!
- Can you connect multiple repositories? Yes!
- Can you change the messages and language? Yes! There is a lang.yml file!
- Install Plugin Dependencies
- skript-reflect
- skript-yaml
- Skent
- Install JGit
- Download the library in the
/libs/
folder in this repository. - Drag the library into the
/plugins/skript-reflect/
folder on your Minecraft server. - Restart your server.
- Download the library in the
- Install
gitsync.sk
in your server's/plugins/Skript/scripts/
folder. - Run
/sk reload gitsync
on your server to generate configurations.
In order to use GitSync, you must set up your repository correctly. For GitSync to recognize and use your repository, you must put all .sk
files inside of a /src/
folder on your repository.
After you have properly set up your configuration and repository, you can run /sync
every time you want to sync your server!
In order to use GitSync, you must connect your Github account. You must input your username and a Github access token!
config.yml
auth:
username: insert_username
token: insert_token
config.yml
repositories:
example-name:
url: Baezor1/Example
branch: main
target: synced/