diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 95343c4cb6..9ae76c4ffb 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -24,6 +24,23 @@ jobs: git tag ${RELEASE_VERSION} git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/Arc ${RELEASE_VERSION}; cd ../Mindustry + - 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 -rf .github + rm README.md + git add . + git commit -m "${GITHUB_SHA}" + git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/MindustryJitpack + git tag ${RELEASE_VERSION} + git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/MindustryJitpack + cd ../Mindustry - name: Create artifacts run: | ./gradlew desktop:dist server:dist core:mergedJavadoc -Pbuildversion=${RELEASE_VERSION:1}