From 4a4200d1075e4694d4f4d29e6719cff376c2576b Mon Sep 17 00:00:00 2001 From: Christian Mesh Date: Tue, 19 Dec 2023 21:04:38 -0500 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bce2e694b..1f3d15340 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,18 +16,12 @@ jobs: java-version: 1.8 - name: keyscan run: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa teamopenindustry.cc >> ~/.ssh/known_hosts - - name: secrets - env: - MAVENCI: ${{ secrets.MAVENCI }} - run: echo "${MAVENCI}" >> publish_key - name: Install deps run: sudo apt install -y pngquant findutils xvfb - name: Setup Universal Mod Core (and helpers) env: BRANCH: ${{ matrix.branch }} - run: ./gradlew umc -D umc.loader=${BRANCH} -D ssh.http=true -Dtarget=release - - name: Hack Forge Gradle - run: mkdir -p ~/.gradle/caches/minecraft/; wget 'https://teamopenindustry.cc/maven/hack/ForgeGradleVersion.json' -O ~/.gradle/caches/minecraft/ForgeGradleVersion.json + run: java -jar UMCSetup.jar ${BRANCH} https - name: Gradle compile run: ./gradlew classes - name: Process images @@ -36,11 +30,10 @@ jobs: run: xvfb-run --auto-servernum ./gradlew runData || xvfb-run --auto-servernum ./gradlew runData || true - name: Gradle build run: ./gradlew build -Dtarget=release - - name: Gradle uploadArchives - run: ./gradlew uploadArchives -Dtarget=release - - name: cleanup - run: rm publish_key + - name: Gradle publish + env: + MAVENCI_PASS: ${{ secrets.MAVENCI_PASS }} + run: ./gradlew publish -Dtarget=release - uses: actions/upload-artifact@v2 with: name: Immersive Railroading ${{matrix.branch}} - path: build/libs/ImmersiveRailroading-${{matrix.branch}}-*