diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b56ae13..c068d77 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,8 +28,15 @@ jobs: java-version: '21' distribution: 'temurin' - - name: Grant Permissions to gradlew - run: chmod +x gradlew + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Grant Permissions + run: | + chmod +x gradlew + chmod +x relocate_natives/prepare.sh - name: Build Jars run: ./gradlew build @@ -39,10 +46,10 @@ jobs: run: | echo "::set-output name=VERSION_NAME::$(./gradlew -q :common:printVersionName)" - - name: Check if tag exists + - name: Check if tag exists uses: mukunku/tag-exists-action@v1.5.0 id: checkTag - with: + with: tag: ${{ steps.gradle_version.outputs.VERSION_NAME }} - name: Fail if tag exists @@ -65,4 +72,4 @@ jobs: fabric/build/libs/*.jar neoforge/build/libs/*.jar name: ${{ steps.gradle_version.outputs.VERSION_NAME }} - tag: ${{ steps.gradle_version.outputs.VERSION_NAME }} + tag: ${{ steps.gradle_version.outputs.VERSION_NAME }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70b492c..e9b7cf2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,16 +20,23 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - + - name: Set up JDK 21 uses: actions/setup-java@v3 with: java-version: '21' distribution: 'temurin' - - - name: Grant Permissions to gradlew - run: chmod +x gradlew - + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Grant Permissions + run: | + chmod +x gradlew + chmod +x relocate_natives/prepare.sh + - name: Test run: ./gradlew :common:test @@ -38,4 +45,4 @@ jobs: if: always() with: files: | - common/build/test-results/**/*.xml + common/build/test-results/**/*.xml \ No newline at end of file