Skip to content

Commit 273d1c7

Browse files
litvinovgchenejac
authored andcommitted
updated github actions
1 parent a6f8546 commit 273d1c7

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ jobs:
1616
run: git clone https://github.com/vivo-project/Vitro.git ../Vitro
1717

1818
- name: Maven Cache
19-
uses: actions/cache@v2
19+
uses: actions/cache@v4
2020
with:
2121
path: ~/.m2/repository
2222
key: ${{ runner.os }}-cache-m2-${{ hashFiles('**/pom.xml') }}
2323
restore-keys: ${{ runner.os }}-cache-m2-
2424

2525
- name: Setup Java
26-
uses: actions/setup-java@v1
26+
uses: actions/setup-java@v4
2727
with:
28+
distribution: 'temurin'
2829
java-version: 11
2930

3031
- name: Maven Build

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ jobs:
2020
run: git clone https://github.com/vivo-project/Vitro.git ../Vitro
2121

2222
- name: Maven Cache
23-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2424
with:
2525
path: ~/.m2/repository
2626
key: ${{ runner.os }}-cache-m2-${{ hashFiles('**/pom.xml') }}
2727
restore-keys: ${{ runner.os }}-cache-m2-
2828

2929
- name: Setup Java
30-
uses: actions/setup-java@v1
30+
uses: actions/setup-java@v4
3131
with:
3232
java-version: 11
33+
distribution: 'temurin'
3334
server-id: ossrh
3435
server-username: MAVEN_USERNAME
3536
server-password: MAVEN_PASSWORD

.github/workflows/docker.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@ jobs:
2020
run: git clone https://github.com/vivo-project/Vitro.git ../Vitro
2121

2222
- name: Maven Cache
23-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2424
with:
2525
path: ~/.m2/repository
2626
key: ${{ runner.os }}-cache-m2-${{ hashFiles('**/pom.xml') }}
2727
restore-keys: ${{ runner.os }}-cache-m2-
2828

2929
- name: Setup Java
30-
uses: actions/setup-java@v1
30+
uses: actions/setup-java@v4
3131
with:
32+
distribution: 'temurin'
3233
java-version: 11
3334

3435
- name: Maven Build

0 commit comments

Comments
 (0)