diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f018ff0a7..bafc3aa60 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,8 @@ jobs: steps: - uses: actions/checkout@v3 + with: + submodules: 'recursive' - name: Set up JDK 17 uses: actions/setup-java@v3 with: @@ -48,16 +50,4 @@ jobs: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USER }} script: | - tmux -S /home/prod/tmux_sockets/prod send-keys -t prod 'stop' Enter - rm -rf /home/prod/archive/config - rm -rf /home/prod/archive/build - mkdir /home/prod/archive/config - mkdir /home/prod/archive/build - git clone git@github.com-Configuration:PhantazmNetwork/Configuration.git /home/prod/archive/config - tar -xf /home/prod/archive/server.tar.gz -C /home/prod/archive/build - rsync -ac --delete /home/prod/archive/build/ /home/prod/servers/prod - rsync -ac /home/prod/archive/config/ /home/prod/servers/prod - rsync -ac /home/prod/archive/persistent/ /home/prod/servers/prod - tmux -S /home/prod/tmux_sockets/prod send-keys -t prod 'cd /home/prod/servers/prod' Enter - tmux -S /home/prod/tmux_sockets/prod send-keys -t prod 'chmod +x ./start.sh' Enter - tmux -S /home/prod/tmux_sockets/prod send-keys -t prod './start.sh' Enter + /home/prod/archive/sync.sh diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..962b585f7 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "minestom"] + path = minestom + url = https://github.com/PhantazmNetwork/Minestom + branch = master diff --git a/.run/Run server.run.xml b/.run/Run server.run.xml index 060941559..e6b3ba9c2 100644 --- a/.run/Run server.run.xml +++ b/.run/Run server.run.xml @@ -1,7 +1,7 @@