Skip to content

Commit

Permalink
feat: support artifact upload for Gradle library build
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Dec 7, 2023
1 parent 161be51 commit 5547d18
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/gradle-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ on:
description: Custom JAVA_TOOL_OPTIONS
type: string
default: ''
upload-artifact-path:
description: Path for artifact to upload (to reuse in another job)
type: string
default: ''
upload-artifact-name:
description: Name for artifact to upload (to reuse in another job)
type: string
default: build-artifact
secrets:
# GH_PAT:
# required: true
Expand Down Expand Up @@ -130,6 +138,17 @@ jobs:
detailed_summary: true
fail_on_failure: true # in case of critical security vulnerabilities

#
# Upload artifact
#
- name: Upload artifact
if: ${{ inputs.upload-artifact-path != '' }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.upload-artifact-name }}
path: ${{ inputs.upload-artifact-path }}
retention-days: 7

#
# Report build failure to Slack
#
Expand Down

0 comments on commit 5547d18

Please sign in to comment.