diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 055db388..0d3d5d26 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -49,3 +49,4 @@ jobs: uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" + diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8853faa..44d8f55c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,15 +44,11 @@ jobs: restore-keys: | gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - - uses: gradle/actions/setup-gradle@v3 - with: - arguments: | - build - check - detekt - mergeDetektSarif - :gradle-plugins:buildPlugins - --continue + - name: Setup gradle + uses: gradle/actions/setup-gradle@v3 + + - name: Run build + run: ./gradlew build check detekt mergeDetektSarif :gradle-plugins:buildPlugins --continue - uses: github/codeql-action/upload-sarif@v3 if: success() || failure() @@ -75,3 +71,4 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e48e106a..72be8a7c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,27 +32,19 @@ jobs: restore-keys: | gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - - name: Publish github pages + - name: Setup gradle uses: gradle/actions/setup-gradle@v3 + + - name: Publish github pages + run: ./gradlew build check :guide:gitPublishPush env: GRGIT_USER: ${{ secrets.GRGIT_USER }} - with: - arguments: | - build - check - :guide:gitPublishPush - name: Publish to maven central - uses: gradle/actions/setup-gradle@v3 - with: - arguments: | - build - check - :kris-core:publish - :kris-io:publish - -x apiCheck + run: ./gradlew build check :kris-core:publish :kris-io:publish -x apiCheck env: GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSPHRASE }} OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} +