Skip to content

Commit ff40b82

Browse files
committed
add upload .jar artifact stage
1 parent 866e2e9 commit ff40b82

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci-cd-java.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: ci-cd-java.yml
22
on:
33
workflow_call:
4+
inputs:
5+
uploadJarArtifact:
6+
required: false
7+
type: boolean
8+
default: false
9+
jarArtifactName:
10+
required: false
11+
type: string
12+
jarArtifactPath:
13+
required: false
14+
type: string
415

516
env:
617
IMAGE_NAME_MIXED_CASE: "${{ github.repository }}"
@@ -37,6 +48,13 @@ jobs:
3748
env:
3849
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3950

51+
- name: Upload .jar artifact
52+
if: ${{ inputs.uploadJarArtifact }}
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: ${{ inputs.jarArtifactName }}
56+
path: ${{ inputs.jarArtifactPath }}
57+
4058
- name: Lowercase Docker Image Name
4159
run: |
4260
echo "IMAGE_NAME=${IMAGE_NAME_MIXED_CASE,,}" >> "${GITHUB_ENV}"

0 commit comments

Comments
 (0)