Skip to content

Commit 77b015a

Browse files
sbt-github-actions 0.16.0 (was 0.14.2) (#259)
* sbt-github-actions 0.16.0 (was 0.14.2) * Regenerate GitHub Actions workflow Executed command: sbt githubWorkflowGenerate
1 parent 3888b50 commit 77b015a

File tree

2 files changed

+12
-34
lines changed

2 files changed

+12
-34
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,40 +28,29 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
steps:
3030
- name: Checkout current branch (full)
31-
uses: actions/checkout@v2
31+
uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 0
3434

3535
- name: Setup Java (temurin@11)
3636
if: matrix.java == 'temurin@11'
37-
uses: actions/setup-java@v2
37+
uses: actions/setup-java@v3
3838
with:
3939
distribution: temurin
4040
java-version: 11
41-
42-
- name: Cache sbt
43-
uses: actions/cache@v2
44-
with:
45-
path: |
46-
~/.sbt
47-
~/.ivy2/cache
48-
~/.coursier/cache/v1
49-
~/.cache/coursier/v1
50-
~/AppData/Local/Coursier/Cache/v1
51-
~/Library/Caches/Coursier/v1
52-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
41+
cache: sbt
5342

5443
- name: Check that workflows are up to date
55-
run: sbt ++${{ matrix.scala }} githubWorkflowCheck
44+
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
5645

5746
- name: Build project
58-
run: sbt ++${{ matrix.scala }} test
47+
run: sbt '++ ${{ matrix.scala }}' test
5948

6049
- name: Compress target directories
6150
run: tar cf targets.tar target project/target
6251

6352
- name: Upload target directories
64-
uses: actions/upload-artifact@v2
53+
uses: actions/upload-artifact@v3
6554
with:
6655
name: target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
6756
path: targets.tar
@@ -78,31 +67,20 @@ jobs:
7867
runs-on: ${{ matrix.os }}
7968
steps:
8069
- name: Checkout current branch (full)
81-
uses: actions/checkout@v2
70+
uses: actions/checkout@v4
8271
with:
8372
fetch-depth: 0
8473

8574
- name: Setup Java (temurin@11)
8675
if: matrix.java == 'temurin@11'
87-
uses: actions/setup-java@v2
76+
uses: actions/setup-java@v3
8877
with:
8978
distribution: temurin
9079
java-version: 11
91-
92-
- name: Cache sbt
93-
uses: actions/cache@v2
94-
with:
95-
path: |
96-
~/.sbt
97-
~/.ivy2/cache
98-
~/.coursier/cache/v1
99-
~/.cache/coursier/v1
100-
~/AppData/Local/Coursier/Cache/v1
101-
~/Library/Caches/Coursier/v1
102-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
80+
cache: sbt
10381

10482
- name: Download target directories (2.12.17)
105-
uses: actions/download-artifact@v2
83+
uses: actions/download-artifact@v3
10684
with:
10785
name: target-${{ matrix.os }}-2.12.17-${{ matrix.java }}
10886

@@ -116,4 +94,4 @@ jobs:
11694
PGP_SECRET: ${{ secrets.PGP_SECRET }}
11795
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
11896
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
119-
run: sbt ++${{ matrix.scala }} ci-release
97+
run: sbt ci-release

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.9.0")
22
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
3-
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
3+
addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.16.0")
44
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11")

0 commit comments

Comments
 (0)