Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt GHA-Scala-Library-Release-Workflow #70

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

rtyley
Copy link
Member

@rtyley rtyley commented Jan 16, 2024

gha-scala-library-release-workflow gives us an automated way to publish releases of this library without needing individual Sonatype credentials for each developer!

The configuration changes are all described in the docs for gha-scala-library-release-workflow.

We've also granted access to the release credentials through https://github.com/guardian/github-secret-access/pull/34.

See also the list of Guardian projects that have adopted this workflow so far: guardian/gha-scala-library-release-workflow#20

https://github.com/guardian/gha-scala-library-release-workflow gives
us an automated way to publish releases of this library without needing
individual Sonatype credentials for each developer!

See also the list of Guardian projects that have adopted this workflow
so far:

guardian/gha-scala-library-release-workflow#20
Comment on lines -22 to -38
def listJsonFiles(file: File) : List[File] = {
if(file.isDirectory) {
file.listFiles().toList.flatMap(listJsonFiles)
} else {
List(file)
}
}

def listJsonFilesInJsonDir: List[(File, String)] = {

val jsonFilesDir = file("json")
val jsonDir = jsonFilesDir.getAbsoluteFile.toPath.getParent

listJsonFiles(jsonFilesDir).map {
file => file -> jsonDir.relativize(file.getAbsoluteFile.toPath).toString
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two methods (listJsonFiles() & listJsonFilesInJsonDir()) have been superfluous since PR #65 switched to using the guardian/actions-riff-raff GitHub Action which supports the contentDirectories setting:

contentDirectories: |
json:
- json/

@rtyley rtyley marked this pull request as ready for review January 16, 2024 17:11
@rtyley rtyley merged commit 4582001 into main Jan 16, 2024
2 checks passed
@JamieB-gu JamieB-gu deleted the adopt-GHA-Scala-Library-Release-Workflow branch February 6, 2024 18:11
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.

2 participants