Skip to content

Commit

Permalink
Merge pull request #486 from CycloneDX/gradle-actions-4
Browse files Browse the repository at this point in the history
build(deps): migrate to gradle actions v4
  • Loading branch information
skhokhlov authored Aug 8, 2024
2 parents 6349d57 + ba1a2e1 commit 4de42b7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ jobs:
java-version: "${{ matrix.java-version }}"
cache: "gradle"

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

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

- name: Build with Gradle
run: ./gradlew build
Expand All @@ -52,3 +49,16 @@ jobs:
with:
name: assembled-plugin-jdk_${{ matrix.java-version }}
path: build/

dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Java
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: 8
- name: Generate and submit dependency graph
uses: gradle/actions/[email protected]
12 changes: 3 additions & 9 deletions .github/workflows/ci-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,14 @@ jobs:
server-id: "github" # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: "${{ github.workspace }}" # location for the settings.xml file

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

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

- name: Build with Gradle
run: ./gradlew build

- name: Publish to Gradle portal
uses: gradle/actions/setup-gradle@v3
with:
arguments: |-
publishPlugin
run: |-
./gradlew publishPlugin
-Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}

0 comments on commit 4de42b7

Please sign in to comment.