diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 903cf7435e..44cf2e22a7 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -33,5 +33,19 @@ jobs: git commit -m "Automatic bundle update" git push fi + - name: Update JITpack repo + run: | + cd ../ + cp -r ./Mindustry ./MindustryJitpack + cd MindustryJitpack + git clone --depth 1 https://github.com/Anuken/MindustryJitpack.git + rm -rf .git + cp -r ./MindustryJitpack/.git ./.git + rm -rf MindustryJitpack + rm README.md + git add . + git commit -m "${GITHUB_SHA}" + git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/MindustryJitpack + cd ../Mindustry - name: Run unit tests run: ./gradlew clean cleanTest test --stacktrace