mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Added artifact up+download action
This commit is contained in:
parent
791e0a22ab
commit
d5f4552661
2 changed files with 25 additions and 0 deletions
21
.github/workflows/deploy.yml
vendored
Normal file
21
.github/workflows/deploy.yml
vendored
Normal 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
|
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue