Skip to content

Commit

Permalink
Merge pull request #169 from mdedetrich/make-publish-respect-githubWo…
Browse files Browse the repository at this point in the history
…rkflowOSes

Make publish respect githubWorkflowOSes
  • Loading branch information
mdedetrich authored Oct 22, 2023
2 parents 9f00e91 + 7d7bfd2 commit 850e842
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/scala/sbtghactions/GenerativePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)}
githubWorkflowPublish.value.toList :::
githubWorkflowPublishPostamble.value.toList,
sbtStepPreamble = githubWorkflowPublishSbtStepPreamble.value.toList,
oses = List(githubWorkflowOSes.value.headOption.getOrElse("ubuntu-latest")),
cond = Some(s"github.event_name != 'pull_request' && $publicationCond"),
scalas = List(scalaVersion.value),
javas = List(githubWorkflowJavaVersions.value.head),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,14 @@ jobs:
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
strategy:
matrix:
os: [ubuntu-latest]
os: [windows-latest]
scala: [2.13.10]
java: [temurin@8]
runs-on: ${{ matrix.os }}
steps:
- name: Ignore line ending differences in git
if: contains(runner.os, 'windows')
shell: bash
run: git config --global core.autocrlf false

- name: Configure pagefile for Windows
Expand Down Expand Up @@ -110,6 +111,7 @@ jobs:
name: target-${{ matrix.os }}-2.13.10-${{ matrix.java }}

- name: Inflate target directories (2.13.10)
shell: bash
run: |
tar xf targets.tar
rm targets.tar
Expand All @@ -120,9 +122,11 @@ jobs:
name: target-${{ matrix.os }}-2.12.17-${{ matrix.java }}

- name: Inflate target directories (2.12.17)
shell: bash
run: |
tar xf targets.tar
rm targets.tar
- name: Publish project
shell: bash
run: sbt +publish

0 comments on commit 850e842

Please sign in to comment.