From c9bf5f413e29e701a4d6ff7a26240b318c09a310 Mon Sep 17 00:00:00 2001 From: MrTJP Date: Sun, 8 Dec 2024 15:12:00 -0500 Subject: [PATCH] TEST: curesuploadpy --- .github/requirements.txt | 3 +- .github/workflows/verify-pull-request.yaml | 34 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/requirements.txt b/.github/requirements.txt index 2ea94aa1d..df821f8d5 100644 --- a/.github/requirements.txt +++ b/.github/requirements.txt @@ -1 +1,2 @@ -fire==0.4.0 \ No newline at end of file +fire==0.4.0 +curseuploadpy @ git+https://github.com/MrTJP/curseuploadpy.git@dev diff --git a/.github/workflows/verify-pull-request.yaml b/.github/workflows/verify-pull-request.yaml index 3dccf8399..51c52e6bd 100644 --- a/.github/workflows/verify-pull-request.yaml +++ b/.github/workflows/verify-pull-request.yaml @@ -25,6 +25,7 @@ jobs: build_test: name: Build and Test runs-on: ubuntu-latest + environment: prod steps: - name: Checkout git repo uses: actions/checkout@v3 @@ -91,3 +92,36 @@ jobs: with: name: project-red-${{ steps.versioning.outputs.version }} path: '*/build/libs/ProjectRed-*.jar' + + - name: TEST curseforgepy + continue-on-error: true + run: | + COMMON_ARGS=( \ + -k $CURSE_TOKEN \ + -rt $CURSE_RELEASE_TYPE \ + -v 'Java 17' \ + -v 1.20.4 \ + -v NeoForge \ + -c ./CHANGELOG.md \ + --dryrun \ + ) + + MODULE_ARGS=( \ + ${COMMON_ARGS[@]} \ + --required-dep project-red-core \ + ) + + echo "commons ${COMMON_ARGS[@]}" + echo "modules ${MODULE_ARGS[@]}" + + python -m curseuploadpy ${COMMON_ARGS[@]} -p 228702 -f core/build/libs/*-core.jar + python -m curseuploadpy ${MODULE_ARGS[@]} -p 229048 -f expansion/build/libs/*-expansion.jar + python -m curseuploadpy ${MODULE_ARGS[@]} -p 229049 -f exploration/build/libs/*-exploration.jar + python -m curseuploadpy ${MODULE_ARGS[@]} -p 230111 -f fabrication/build/libs/*-fabrication.jar -rd project-red-integration -rd project-red-transmission + python -m curseuploadpy ${MODULE_ARGS[@]} -p 229046 -f illumination/build/libs/*-illumination.jar + python -m curseuploadpy ${MODULE_ARGS[@]} -p 229045 -f integration/build/libs/*-integration.jar + python -m curseuploadpy ${MODULE_ARGS[@]} -p 478939 -f transmission/build/libs/*-transmission.jar + + env: + CURSE_RELEASE_TYPE: alpha + CURSE_TOKEN: ${{ secrets.CURSE_TOKEN }}