From e60281a15eb52d7620da525bcff1c5cf8bcdaf7e Mon Sep 17 00:00:00 2001 From: TropheusJ Date: Tue, 20 Feb 2024 02:55:12 -0500 Subject: [PATCH] actions pain #4 --- .github/workflows/release.yml | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e6883459..2433aed7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,14 +2,19 @@ name: release on: workflow_dispatch jobs: - setup: # sets up repo, gradle, and version + build: strategy: matrix: java: [ 17 ] runs-on: ubuntu-latest + env: + MAVEN_TYPE: releases + MAVEN_USER: ${{ secrets.MAVEN_USER }} + MAVEN_PASS: ${{ secrets.MAVEN_PASS }} outputs: version: ${{ steps.publish.outputs.version }} steps: + - name: checkout repository uses: actions/checkout@v3 @@ -23,24 +28,9 @@ jobs: java-version: 17 cache: gradle - # stores the version in a special file that GitHub will read for outputs - - name: store version - run: ./gradlew grabVersion - - build: - strategy: - matrix: - java: [ 17 ] - runs-on: ubuntu-latest - env: - MAVEN_TYPE: releases - MAVEN_USER: ${{ secrets.MAVEN_USER }} - MAVEN_PASS: ${{ secrets.MAVEN_PASS }} - needs: [ setup ] - steps: - name: publish id: publish - run: ./gradlew publish + run: ./gradlew publish grabVersion # grabVersion stores the version in a special file that GitHub will read - name: capture build artifacts uses: actions/upload-artifact@v3 @@ -59,8 +49,8 @@ jobs: modrinth-featured: false # leave it to auto featuring - name: ${{ needs.setup.outputs.version }} - version: ${{ needs.setup.outputs.version }} + name: ${{ steps.publish.outputs.version }} + version: ${{ steps.publish.outputs.version }} loaders: | fabric