Skip to content

Commit 54879f7

Browse files
committed
update workflow actions.
1 parent 9115105 commit 54879f7

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/docker-image.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Log in to Docker Hub
17-
uses: docker/login-action@v2
17+
uses: docker/login-action@v3
1818
with:
1919
username: ${{ secrets.DOCKER_USERNAME }}
2020
password: ${{ secrets.DOCKER_PASSWORD }}
2121
- name: Log in to the Github registry
22-
uses: docker/login-action@v2
22+
uses: docker/login-action@v3
2323
with:
2424
registry: ghcr.io
2525
username: ${{ github.actor }}
2626
password: ${{ secrets.GITHUB_TOKEN }}
2727

2828
- name: Build and push master branch snapshot
2929
if: ${{ github.ref == 'refs/heads/master' }}
30-
uses: docker/build-push-action@v3
30+
uses: docker/build-push-action@v6
3131
with:
3232
file: build/docker/Dockerfile
3333
push: true
@@ -38,15 +38,15 @@ jobs:
3838
- name: Extract metadata (tags, labels) for Docker
3939
id: meta
4040
if: ${{ startsWith(github.ref, 'refs/tags/') }}
41-
uses: docker/metadata-action@v4
41+
uses: docker/metadata-action@v5
4242
with:
4343
images: |
4444
robcast/digilib
4545
ghcr.io/robcast/digilib
4646
4747
- name: Build and push tagged version
4848
if: ${{ startsWith(github.ref, 'refs/tags/') }}
49-
uses: docker/build-push-action@v3
49+
uses: docker/build-push-action@v6
5050
with:
5151
file: build/docker/Dockerfile
5252
push: true

.github/workflows/maven.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Set up JDK 11
16-
uses: actions/setup-java@v3
16+
uses: actions/setup-java@v4
1717
with:
1818
java-version: '11'
1919
distribution: 'adopt'
2020
- name: Cache Maven packages
21-
uses: actions/cache@v3
21+
uses: actions/cache@v4
2222
with:
2323
path: ~/.m2
2424
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2525
restore-keys: ${{ runner.os }}-m2
2626

2727
- name: Checkout artifact repo (for release)
2828
if: startsWith(github.ref, 'refs/tags/')
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
repository: robcast/digilib-repo
3232
ref: gh-pages
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Deploy javadoc and maven-repo to digilib-repo (for release)
4848
if: startsWith(github.ref, 'refs/tags/')
49-
uses: crazy-max/ghaction-github-pages@v3
49+
uses: crazy-max/ghaction-github-pages@v4
5050
with:
5151
repo: robcast/digilib-repo
5252
target_branch: gh-pages
@@ -60,7 +60,7 @@ jobs:
6060

6161
- name: Deploy html site to gh-pages
6262
if: ${{ github.ref == 'refs/heads/master' }}
63-
uses: crazy-max/ghaction-github-pages@v3
63+
uses: crazy-max/ghaction-github-pages@v4
6464
with:
6565
target_branch: gh-pages
6666
build_dir: doc/target/site
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: add WAR to GH Release (for release)
7171
if: startsWith(github.ref, 'refs/tags/')
72-
uses: softprops/action-gh-release@v1
72+
uses: softprops/action-gh-release@v2
7373
with:
7474
files: webapp/target/digilib-webapp-*.war
7575
env:

0 commit comments

Comments
 (0)