Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows … #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: shadow | |
- name: Archive Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: target-jar | |
path: build/libs/*.jar | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download Build Artifacts | |
uses: actions/download-artifact@v4.1.7 | |
with: | |
name: target-jar | |
# Upload as an artifact of the current workflow | |
- name: Upload build zip artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Release artifacts | |
path: '*.jar' | |
# Make official GitHub release which will trigger | |
# sending the mail with link for access | |
- name: Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: '*.jar' | |
draft: false | |
prerelease: false | |
allowUpdates: true | |
bodyFile: CHANGELOG.md | |
tag: v0.5.0 |