add workaround for classpath issue #18
Workflow file for this run
This file contains hidden or 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: Nebula Publish | |
| on: | |
| push: | |
| tags: | |
| - v*.*.* | |
| - v*.*.*-rc.* | |
| jobs: | |
| publish: | |
| if: github.event.base_ref == 'refs/heads/main' # tags must be pushed to main | |
| runs-on: ubuntu-latest | |
| name: Gradle Build and Publish | |
| environment: | |
| name: Publish | |
| url: "https://repo1.maven.org/maven2/com/netflix/nebula/nebula-archrules-core/" | |
| env: | |
| NETFLIX_OSS_SONATYPE_USERNAME: ${{ secrets.ORG_SONATYPE_USERNAME }} | |
| NETFLIX_OSS_SONATYPE_PASSWORD: ${{ secrets.ORG_SONATYPE_PASSWORD }} | |
| NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }} | |
| NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }} | |
| NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }} | |
| NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup git user | |
| run: | | |
| git config --global user.name "Nebula Plugin Maintainers" | |
| git config --global user.email "[email protected]" | |
| - name: Set up JDKs | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: | | |
| 11 | |
| 21 | |
| java-package: jdk | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-overwrite-existing: true | |
| - name: Gradle build | |
| run: ./gradlew --stacktrace build | |
| - name: Verify plugin publication | |
| if: (!contains(github.ref, '-rc.')) | |
| run: ./gradlew --stacktrace -Dgradle.publish.key=${{ secrets.gradlePublishKey }} -Dgradle.publish.secret=${{ secrets.gradlePublishSecret }} -Prelease.useLastTag=true final publishPlugin --validate-only -x check | |
| - name: Publish candidate | |
| if: contains(github.ref, '-rc.') | |
| run: ./gradlew --info --stacktrace -Prelease.useLastTag=true candidate | |
| - name: Publish release | |
| if: (!contains(github.ref, '-rc.')) | |
| run: ./gradlew --info --stacktrace -Dgradle.publish.key=${{ secrets.gradlePublishKey }} -Dgradle.publish.secret=${{ secrets.gradlePublishSecret }} -Prelease.useLastTag=true final |