Skip to content

Commit

Permalink
chore: replace gradle-build-action with setup-gradle action
Browse files Browse the repository at this point in the history
  • Loading branch information
ursjoss committed Jun 29, 2024
1 parent 8702d3e commit 3bec421
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

15 changes: 6 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -75,3 +71,4 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

20 changes: 6 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 3bec421

Please sign in to comment.