Skip to content

Commit

Permalink
Fix sonarcloud task to use gradle. Change publish-build to point to a…
Browse files Browse the repository at this point in the history
… slightly different file
  • Loading branch information
md5sha256 committed Apr 22, 2024
1 parent 498de0f commit 5fa3807
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
project: Slimefun4
releaseChannel: ${{ github.ref == 'refs/heads/master' && 'Dev' || 'RC' }}
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: './build/libs/Slimefun-v4.9-UNOFFICIAL.jar'
file: 'build/libs/Slimefun-v4.9-UNOFFICIAL.jar'
releaseNotes: ${{ github.event.head_commit.message }}
11 changes: 10 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3

- name: Grant Wrapper Permission
run: chmod +x gradlew

- name: SonarCloud analysis
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
run: ./gradlew sonar
if: ${{ env.SONAR_TOKEN != 0 }}

0 comments on commit 5fa3807

Please sign in to comment.