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

migrate to gh actions #1591

Merged
merged 1 commit into from Oct 27, 2022
Merged

migrate to gh actions #1591

merged 1 commit into from Oct 27, 2022

Conversation

i10416
Copy link
Contributor

@i10416 i10416 commented Oct 16, 2022

prepare for #1465 ,#1577

This PR migrates ci from Travis to GitHub Actions.

I found current ci does not publish docsite, so I keep it as is.
I guess it takes much to find out how docsite is published currently and incorporate into ci workflow. Therefore, I put publishing docsite aside for now.

Workflow runs format check, lint and tests against Scala version 2.15.16 and 2.13.8.

To enable auto release, please set the environment variables bellow from settings page

  • PGP_PASSPHRASE
  • PGP_SECRET
  • SONATYPE_PASSWORD
  • SONATYPE_USERNAME

image

After setting secrets, GitHub Actions will publish pre-release artifact on every PR(after lint and test) and release artifact on tag.

If you have trouble, see https://github.com/sbt/sbt-ci-release

@i10416 i10416 marked this pull request as ready for review October 16, 2022 10:38
@i10416 i10416 marked this pull request as draft October 16, 2022 10:39
@i10416 i10416 force-pushed the migrate-to-gh-actions branch 20 times, most recently from d8111dc to 9f9def6 Compare October 16, 2022 11:20
@i10416 i10416 mentioned this pull request Oct 16, 2022
4 tasks
@kailuowang
Copy link
Contributor

Thanks so much!
@rtyley looks like a scanamo user was approved by sonatype to have publishing right.
https://issues.sonatype.org/plugins/servlet/mobile#issue/OSSRH-44688

Maybe you have the credential of it that we can use for ci release?

@i10416 i10416 marked this pull request as ready for review October 16, 2022 11:48
@i10416 i10416 changed the title draft: gh actions migrate to gh actions Oct 16, 2022
@rtyley
Copy link
Contributor

rtyley commented Oct 27, 2022

  • PGP_PASSPHRASE
  • PGP_SECRET
  • SONATYPE_PASSWORD
  • SONATYPE_USERNAME

I've added these repository secrets (using the 'scanamo' sonatype user, and this PGP key. I'll merge now and try to perform a release...

@rtyley rtyley merged commit c84bf78 into scanamo:master Oct 27, 2022
@rtyley
Copy link
Contributor

rtyley commented Oct 27, 2022

I tagged the latest commit (c84bf78) as v1.0.0-M21, and I can see that a release step occurred, it's still running...

https://github.com/scanamo/scanamo/actions/runs/3339137076/jobs/5527814974

@kailuowang
Copy link
Contributor

Thanks so much Tyley! I got a M22 release.

@i10416
Copy link
Contributor Author

i10416 commented Oct 29, 2022

@rtyley Thank you!

@i10416
Copy link
Contributor Author

i10416 commented Oct 29, 2022

@rtyley Do you have right to generate credentials for https://s01.oss.sonatype.org ? I think creds for s01.oss.sonatype.org is needed to publish snapshot artifacts.

rel

@kailuowang
Copy link
Contributor

I think we can disable snapshot publish for now ( we don't have frequent bug fixes or features, and it's very easy to release a new milestone) if s01.oss.sonatype.org is too much

@i10416
Copy link
Contributor Author

i10416 commented Nov 2, 2022

I agree! Disabled in #1594.

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.

None yet

3 participants