Added a war file artifact

This commit is contained in:
iadgovuser26 2023-10-18 08:40:52 -04:00
parent 561280a263
commit 51ae60e639

View File

@ -26,9 +26,6 @@ jobs:
- name: directory setup - name: directory setup
run: | run: |
mkdir -p artifacts/jars mkdir -p artifacts/jars
mkdir -p artifacts/wars
mkdir -p artifacts/rpms
mkdir -p artifacts/debs
- name: install dependencies - name: install dependencies
run: | run: |
sudo apt-get update sudo apt-get update
@ -45,23 +42,28 @@ jobs:
cp HIRS_AttestationCA/build/libs/*.jar artifacts/jars/. cp HIRS_AttestationCA/build/libs/*.jar artifacts/jars/.
cp HIRS_Utils/build/libs/*.jar artifacts/jars/. cp HIRS_Utils/build/libs/*.jar artifacts/jars/.
cp HIRS_Structs/build/libs/*.jar artifacts/jars/. cp HIRS_Structs/build/libs/*.jar artifacts/jars/.
cp HIRS_AttestationCAPortal/build/libs/HIRS_AttestationCAPortal.war artifacts/wars/.
cp HIRS_AttestationCAPortal/build/distributions/*.rpm artifacts/rpms/.
cp HIRS_AttestationCAPortal/build/distributions/*.deb artifacts/debs/.
- name: Archive RPM files - name: Archive RPM files
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: RPM_Files name: RPM_Files
path: artifacts/rpms/* path: HIRS_AttestationCAPortal/build/distributions/*.rpm
if-no-files-found: error if-no-files-found: error
- name: Archive DEB files - name: Archive DEB files
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: DEB_Files name: DEB_Files
path: artifacts/debs/* path: HIRS_AttestationCAPortal/build/distributions/*.deb
if-no-files-found: error if-no-files-found: error
- name: Archive Jar files - name: War files
uses: actions/upload-artifact@v3
with:
name: WAR_Files
path: HIRS_AttestationCAPortal/build/libs/HIRS_AttestationCAPortal.war
if-no-files-found: error
- name: JAR_Files
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: JAR_Files name: JAR_Files
path: artifacts/jars/ path: artifacts/jars/
if-no-files-found: error