Skip to content

Commit

Permalink
Update GitHub Actions to fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MWin123 committed Jun 13, 2024
1 parent 46dc0c3 commit 459a666
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
name: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Echo JAVA_HOME
run: echo $JAVA_HOME
- name: Verify Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
uses: gradle/actions/wrapper-validation@v3
- name: Execute build (macOS & Ubuntu)
if: matrix.os != 'windows-2022'
run: ./gradlew --info build
Expand All @@ -33,13 +33,13 @@ jobs:
run: .\gradlew.bat --info build
- name: Upload TAR as an artifact
if: matrix.os != 'windows-2022'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kafkaesque-jdk${{ matrix.java }}-${{ matrix.os }}-tar
path: build/distributions/*.tar
- name: Upload ZIP as an artifact
if: matrix.os == 'windows-2022'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kafkaesque-jdk${{ matrix.java }}-${{ matrix.os }}-zip
path: build/distributions/*.zip
Expand All @@ -57,37 +57,37 @@ jobs:
run: .\gradlew.bat --info jpackage
- name: Upload DMG as an artifact
if: matrix.os == 'macos-12'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kafkaesque-jdk${{ matrix.java }}-${{ matrix.os }}-dmg
path: build/jpackage/*.dmg
- name: Upload PKG as an artifact
if: matrix.os == 'macos-12'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kafkaesque-jdk${{ matrix.java }}-${{ matrix.os }}-pkg
path: build/jpackage/*.pkg
- name: Upload DEB as an artifact
if: matrix.os == 'ubuntu-22.04'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kafkaesque-jdk${{ matrix.java }}-${{ matrix.os }}-deb
path: build/jpackage/*.deb
- name: Upload RPM as an artifact
if: matrix.os == 'ubuntu-22.04'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kafkaesque-jdk${{ matrix.java }}-${{ matrix.os }}-rpm
path: build/jpackage/*.rpm
- name: Upload EXE as an artifact
if: matrix.os == 'windows-2022'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kafkaesque-jdk${{ matrix.java }}-${{ matrix.os }}-exe
path: build/jpackage/*.exe
- name: Upload MSI as an artifact
if: matrix.os == 'windows-2022'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kafkaesque-jdk${{ matrix.java }}-${{ matrix.os }}-msi
path: build/jpackage/*.msi
Expand All @@ -99,14 +99,14 @@ jobs:
startsWith(github.ref, 'refs/tags/') &&
matrix.os == 'macos-12'
- name: Create release (macOS)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: |
startsWith(github.ref, 'refs/tags/') &&
matrix.os == 'macos-12'
with:
files: build/jpackage/*.dmg
- name: Create release (Ubuntu)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: |
startsWith(github.ref, 'refs/tags/') &&
matrix.os == 'ubuntu-22.04'
Expand All @@ -115,7 +115,7 @@ jobs:
build/jpackage/*.deb
build/jpackage/*.rpm
- name: Create release (Windows)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: |
startsWith(github.ref, 'refs/tags/') &&
matrix.os == 'windows-2022'
Expand Down

0 comments on commit 459a666

Please sign in to comment.