Skip to content

Commit

Permalink
fix: fix the publication tasks in GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
flelli committed Dec 14, 2024
1 parent dae21b3 commit 165fc3f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ jobs:
nyx-cache-name-restore-suffix: ${{ needs.initialize.outputs.nyx-cache-name-suffix }}
gradle-cache-name-restore-suffix: ${{ needs.java-build.outputs.gradle-cache-name-suffix }}
java-cache-name-restore-suffix: ${{ needs.java-build.outputs.java-cache-name-suffix }}
gradle-tasks: src:java:publish src:java:gradle:publish
secrets:
# Pass extra properties used by the Gradle scripts to run tests.
# See the top level
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Nyx

[![Release](https://img.shields.io/github/v/release/mooltiverse/nyx?sort=semver)](https://github.com/mooltiverse/nyx/releases)
[![GitHub Actions](https://github.com/mooltiverse/nyx/actions/workflows/workflow.yml/badge.svg?branch=main)](https://github.com/mooltiverse/nyx/actions/workflows/workflow.yml)
[![GitHub Actions](https://github.com/mooltiverse/nyx/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/mooltiverse/nyx/actions/workflows/main.yml)
[![Powered by Nyx](https://img.shields.io/badge/powered%20by-Nyx-blue)](https://github.com/mooltiverse/nyx)
[![Javadoc](https://javadoc.io/badge2/com.mooltiverse.oss.nyx/java/Javadoc.svg)](https://javadoc.io/doc/com.mooltiverse.oss.nyx/java)
[![Go Doc](https://godocs.io/github.com/mooltiverse/nyx/src/go/nyx?status.svg)](https://godocs.io/github.com/mooltiverse/nyx/src/go/nyx)
Expand Down
3 changes: 0 additions & 3 deletions src/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,6 @@ tasks.check.dependsOn tasks.testReport
// so that we can run all Java unit tests with one task
tasks.test.dependsOn subprojects*.test

// Make this overall publish task dependent on subprojects publish tasks
tasks.publish.dependsOn subprojects*.publish

// Publish artifacts to the Staging Sonatype Nexus
//
// Retrieve and print the stagingProfileId using the getStagingProfile task
Expand Down
2 changes: 2 additions & 0 deletions src/java/gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ task setupPublishPluginCredentials() {
------------------------------------------------------------------------------*/
tasks.publishPlugins.dependsOn tasks.setupPublishPluginCredentials
tasks.publish.dependsOn tasks.publishPlugins
// Make sure the global Java artifacts are published before the plugin
tasks.publish.dependsOn tasks.getByPath(':src:java:publish')

// to enforce the fail-fast principle, make sure the main library tests are executed first
tasks.test.dependsOn project(':src:java:main').tasks.test
Expand Down

0 comments on commit 165fc3f

Please sign in to comment.