Release pipeline for Sonatype (#1756) #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload dependency graph | |
on: | |
push: | |
branches: [ "master" ] | |
permissions: | |
contents: write # needed to submit dependency graph to github | |
jobs: | |
upload-dependency-graph: | |
name: Upload dependency graph | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'sbt' | |
# Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository | |
- name: Upload dependency graph | |
uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91 |