Skip to content

Conversation

@hramniou-eurofunk
Copy link
Contributor

@hramniou-eurofunk hramniou-eurofunk commented May 29, 2025

Created a simple workflow using the Publishing-using-gradle GitHub action.

The workflow is executed once a GitHub Release is created. It uses ./gradlew publish command, which does publishing in the repository configured here:

repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/eurofunk/sbom-license-plugin")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}

The workflow sets${{ github.actor }} variable value for the USERNAME, and ${{ secrets.GITHUB_TOKEN }} for the TOKEN.

See also:

@hramniou-eurofunk hramniou-eurofunk self-assigned this May 29, 2025
@CristinaSpoiala CristinaSpoiala requested review from CristinaSpoiala and bilak and removed request for CristinaSpoiala May 29, 2025 12:35
@hramniou-eurofunk hramniou-eurofunk changed the base branch from feature/FOUND-2657-license-evaluation-plugin to main June 3, 2025 07:53
@hramniou-eurofunk hramniou-eurofunk force-pushed the feature/FOUND-2760-github-action-for-publishing branch from 12a2fdf to 8ddac0e Compare June 4, 2025 08:48
@hramniou-eurofunk hramniou-eurofunk force-pushed the feature/FOUND-2760-github-action-for-publishing branch from 7ad0714 to a4fa8a3 Compare June 4, 2025 12:14
@hramniou-eurofunk hramniou-eurofunk merged commit 92146c1 into main Jun 5, 2025
2 checks passed
@hramniou-eurofunk hramniou-eurofunk deleted the feature/FOUND-2760-github-action-for-publishing branch June 5, 2025 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants