Added artifact up+download action

This commit is contained in:
Mdumisi Kelvin Letsie 2024-03-06 15:25:16 +02:00
parent 791e0a22ab
commit d5f4552661
2 changed files with 25 additions and 0 deletions

21
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Upload and Deploy Artifact from build pipeline
on:
workflow_call
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: java-app
path: '${{ github.workspace }}/target/*.jar'
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: java-app

View file

@ -26,3 +26,7 @@ jobs:
my_second_job:
name: "Call build workflow"
uses: ./.github/workflows/build.yml
my_third_job:
name: "Upload and Download artifact file"
uses: ./.github/workflows/deploy.yml