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

Replace travis with GitHub actions #28

Merged
merged 4 commits into from
Apr 11, 2022

Conversation

mdedetrich
Copy link
Contributor

This PR replaces travis with sbt-github-actions. Also handles publishing via sonatype.

build.sbt Outdated
JavaSpec.temurin("17")
)

ThisBuild / githubWorkflowTargetBranches := Seq("master")
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe already

Suggested change
ThisBuild / githubWorkflowTargetBranches := Seq("master")
ThisBuild / githubWorkflowTargetBranches := Seq("main", "master")

for if/when we move to that - not important though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do this but its different to the other lightbend projects where I integrated sbt-paradox-dependencies so it would be inconsistent in this regard. Would you be happy if I made an issue stating that you also need to do ThisBuild / githubWorkflowTargetBranches when changing from main to master?

Also I think that @ennru is familiar with sbt-github-actions and is aware of this.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can do this but its different to the other lightbend projects where I integrated sbt-paradox-dependencies so it would be inconsistent in this regard.

Ok

Would you be happy if I made an issue stating that you also need to do ThisBuild / githubWorkflowTargetBranches when changing from main to master?

I don't think an issue is strictly necessary, we'll notice soon enough when we make the switch :)

Copy link
Member

Choose a reason for hiding this comment

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

Let's add main so that we can do the branch rename.

@raboof
Copy link
Contributor

raboof commented Apr 9, 2022

(we'd have to make sure those secrets are available to the github action, but I don't have the authorizations to do that in this repo)

Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

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

Thank you for jumping on these small Paradox helpers.
I won't get to adding the PGP stuff this week.

addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't this come in transitively with sbt-github-actions?

Copy link
Contributor Author

@mdedetrich mdedetrich Apr 11, 2022

Choose a reason for hiding this comment

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

If you mean sbt-ci-release, this is seperate to sbt-github-actions. sbt-ci-release provides

sbt-dynver: sets the version number based on your git history
sbt-pgp: to cryptographically sign the artifacts before publishing
sbt-sonatype: to publish artifacts to Sonatype
sbt-git: to automatically populate scmInfo

transitively (see https://github.com/sbt/sbt-ci-release#sbt)

Comment on lines -42 to -44
// don't do any API docs
doc / sources := Seq()
packageDoc / publishArtifact := false
Copy link
Member

Choose a reason for hiding this comment

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

We can continue to skip publishing of sources and Scaladoc.

Copy link
Contributor Author

@mdedetrich mdedetrich Apr 11, 2022

Choose a reason for hiding this comment

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

Didn't this break publishing to sonatype (i.e. the issues behind lightbend/sbt-paradox-project-info#32)?

build.sbt Outdated
JavaSpec.temurin("17")
)

ThisBuild / githubWorkflowTargetBranches := Seq("master")
Copy link
Member

Choose a reason for hiding this comment

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

Let's add main so that we can do the branch rename.

@mdedetrich
Copy link
Contributor Author

I just pushed the changes to accept main as well as master for targeted branch. Responded to other comments as well.

@ennru ennru merged commit b6d4b14 into lightbend:master Apr 11, 2022
@mdedetrich mdedetrich deleted the replace-travis-with-github-actions branch April 11, 2022 11:39
@ennru
Copy link
Member

ennru commented Apr 11, 2022

I added the secrets, but it didn't trigger releasing when I just created the release in the GH UI. Pushing the tag worked, though.

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.

3 participants