Skip to content

Commit

Permalink
Merge pull request #674 from armanbilge/update/artifact-upload-downlo…
Browse files Browse the repository at this point in the history
…ad-v4

Update {upload,download}-artifact to v4
  • Loading branch information
armanbilge authored Dec 20, 2023
2 parents 92a9965 + 6c3e6d0 commit 5a11001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ jobs:

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.project }}
path: targets.tar
Expand Down Expand Up @@ -345,7 +345,7 @@ jobs:
run: sbt +update

- name: Download target directories (2.12, sbt-typelevelJVM)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12-sbt-typelevelJVM

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)}
val artifactId = MatrixKeys.groupId(keys)

val upload = WorkflowStep.Use(
UseRef.Public("actions", "upload-artifact", "v3"),
UseRef.Public("actions", "upload-artifact", "v4"),
name = Some(s"Upload target directories"),
params = Map("name" -> s"target-$artifactId", "path" -> "targets.tar"),
cond = Some(publicationCond.value)
Expand Down Expand Up @@ -757,7 +757,7 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)}
val pretty = v.mkString(", ")

val download = WorkflowStep.Use(
UseRef.Public("actions", "download-artifact", "v3"),
UseRef.Public("actions", "download-artifact", "v4"),
name = Some(s"Download target directories ($pretty)"),
params =
Map("name" -> s"target-$${{ matrix.os }}-$${{ matrix.java }}-${v.mkString("-")}")
Expand Down

0 comments on commit 5a11001

Please sign in to comment.