-
Notifications
You must be signed in to change notification settings - Fork 161
Setup CI release #475
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
Setup CI release #475
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: ["v*"] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
scalajsversion: ["1.x", "0.6.x"] | ||
env: | ||
SCALAJS_VERSION: "${{ matrix.scalajsversion == '0.6.x' && '0.6.28' || '' }}" | ||
steps: | ||
- uses: actions/[email protected] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just |
||
with: | ||
fetch-depth: 0 | ||
- uses: olafurpg/setup-scala@v10 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 13 is latest. I'll add dependabot for these later (or feel free to yourself if you want) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Never used dependabot. My chance to learn! This is what you install? https://github.com/apps/dependabot-preview |
||
- run: sbt ci-release | ||
env: | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,14 @@ val commonSettings = Seq( | |
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings") | ||
) | ||
|
||
val noPublishSettings = Seq( | ||
skip in publish := true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe in 1.5.5 this is all we need, all the rest is redundant stuff that I created years ago in the 0.13.x days, and now it seems to have spread around verbatim haha. Plus change to |
||
publish := (()), | ||
publishLocal := (()), | ||
publishArtifact := false, | ||
publishTo := None | ||
) | ||
|
||
normalizedName := "scalajs-dom" | ||
|
||
commonSettings | ||
|
@@ -115,9 +123,10 @@ lazy val readme = ScalatexReadme( | |
scalaVersion := "2.12.10", | ||
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"), | ||
(Compile / resources) += (example / Compile / fullOptJS).value.data | ||
) | ||
).settings(noPublishSettings: _*) | ||
|
||
lazy val example = project. | ||
enablePlugins(ScalaJSPlugin). | ||
settings(commonSettings: _*). | ||
settings(noPublishSettings: _*). | ||
dependsOn(root) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ubuntu-latest
probably better